Import web links into demo via node path
This commit is contained in:
Submodule
+1
Submodule addons/xterm-addon-web-links added at a87ba586e6
@@ -14,6 +14,7 @@ import { Terminal } from '../out/public/Terminal';
|
|||||||
|
|
||||||
import { AttachAddon } from 'xterm-addon-attach';
|
import { AttachAddon } from 'xterm-addon-attach';
|
||||||
import { SearchAddon, ISearchOptions } from 'xterm-addon-search';
|
import { SearchAddon, ISearchOptions } from 'xterm-addon-search';
|
||||||
|
|
||||||
import { WebLinksAddon } from 'xterm-addon-web-links';
|
import { WebLinksAddon } from 'xterm-addon-web-links';
|
||||||
|
|
||||||
import * as fit from '../lib/addons/fit/fit';
|
import * as fit from '../lib/addons/fit/fit';
|
||||||
|
|||||||
+5
-1
@@ -43,7 +43,11 @@ const clientConfig = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: [path.resolve(__dirname, '..'), 'node_modules'],
|
modules: [
|
||||||
|
'node_modules',
|
||||||
|
path.resolve(__dirname, '..'),
|
||||||
|
path.resolve(__dirname, '../addons')
|
||||||
|
],
|
||||||
extensions: [ '.tsx', '.ts', '.js' ],
|
extensions: [ '.tsx', '.ts', '.js' ],
|
||||||
alias: {
|
alias: {
|
||||||
common: path.resolve('./out/common'),
|
common: path.resolve('./out/common'),
|
||||||
|
|||||||
+5
-1
@@ -3,7 +3,11 @@
|
|||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"sourceMap": true
|
"sourceMap": true,
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"xterm-addon-web-links": ["../addons/xterm-addon-web-links"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"client.ts",
|
"client.ts",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"include": [],
|
"include": [],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "./src" },
|
{ "path": "./src" },
|
||||||
|
{ "path": "./addons/xterm-addon-web-links/src" },
|
||||||
{ "path": "./src/addons/attach" },
|
{ "path": "./src/addons/attach" },
|
||||||
{ "path": "./src/addons/fit" },
|
{ "path": "./src/addons/fit" },
|
||||||
{ "path": "./src/addons/fullscreen" },
|
{ "path": "./src/addons/fullscreen" },
|
||||||
|
|||||||
Reference in New Issue
Block a user