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
+9 -4
View File
@@ -1,7 +1,12 @@
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
const path = require('path');
module.exports = {
entry: './lib/public/Terminal.js',
entry: './out/public/Terminal.js',
devtool: 'inline-source-map',
module: {
rules: [
@@ -17,13 +22,13 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('./lib/common'),
core: path.resolve('./lib/core')
common: path.resolve('./out/common'),
core: path.resolve('./out/core')
}
},
output: {
filename: 'xterm.js',
path: path.resolve('./lib2'),
path: path.resolve('./lib'),
library: 'Terminal',
libraryTarget: 'umd'
},