Get webpack build working

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