Kind of working setup

This commit is contained in:
Daniel Imms
2019-05-26 11:05:23 -07:00
parent 44e01ba006
commit 38afe991b2
26 changed files with 87 additions and 38 deletions
+4 -1
View File
@@ -7,7 +7,10 @@
/// <reference path="../typings/xterm.d.ts"/>
import { Terminal } from '../lib/public/Terminal';
const t = require('../lib2/xterm');
console.log(t);
import { Terminal } from '../lib2/xterm';
console.log('t2', Terminal);
import { AttachAddon } from 'xterm-addon-attach';
import { SearchAddon, ISearchOptions } from 'xterm-addon-search';
import { WebLinksAddon } from 'xterm-addon-web-links';
+5 -1
View File
@@ -32,7 +32,11 @@ const clientConfig = {
},
resolve: {
modules: [path.resolve(__dirname, '..'), 'node_modules'],
extensions: [ '.tsx', '.ts', '.js' ]
extensions: [ '.tsx', '.ts', '.js' ],
alias: {
common: path.resolve(__dirname, '../lib/common'),
core: path.resolve(__dirname, '../lib/core')
}
},
output: {
filename: 'client-bundle.js',