mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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 { SearchAddon, ISearchOptions } from 'xterm-addon-search';
|
||||
|
||||
import { WebLinksAddon } from 'xterm-addon-web-links';
|
||||
|
||||
import * as fit from '../lib/addons/fit/fit';
|
||||
|
||||
+5
-1
@@ -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
@@ -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",
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user