Import web links into demo via node path

This commit is contained in:
Daniel Imms
2019-05-31 18:58:48 -07:00
parent 96b96cfcf8
commit 413f9ca3a1
5 changed files with 13 additions and 2 deletions
Submodule addons/xterm-addon-web-links added at a87ba586e6
+1
View File
@@ -14,6 +14,7 @@ import { Terminal } from '../out/public/Terminal';
import { AttachAddon } from 'xterm-addon-attach';
import { SearchAddon, ISearchOptions } from 'xterm-addon-search';
import { WebLinksAddon } from 'xterm-addon-web-links';
import * as fit from '../lib/addons/fit/fit';
+5 -1
View File
@@ -43,7 +43,11 @@ const clientConfig = {
]
},
resolve: {
modules: [path.resolve(__dirname, '..'), 'node_modules'],
modules: [
'node_modules',
path.resolve(__dirname, '..'),
path.resolve(__dirname, '../addons')
],
extensions: [ '.tsx', '.ts', '.js' ],
alias: {
common: path.resolve('./out/common'),
+5 -1
View File
@@ -3,7 +3,11 @@
"module": "commonjs",
"target": "es5",
"rootDir": ".",
"sourceMap": true
"sourceMap": true,
"baseUrl": ".",
"paths": {
"xterm-addon-web-links": ["../addons/xterm-addon-web-links"]
}
},
"include": [
"client.ts",
+1
View File
@@ -3,6 +3,7 @@
"include": [],
"references": [
{ "path": "./src" },
{ "path": "./addons/xterm-addon-web-links/src" },
{ "path": "./src/addons/attach" },
{ "path": "./src/addons/fit" },
{ "path": "./src/addons/fullscreen" },