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
+32
View File
@@ -0,0 +1,32 @@
const path = require('path');
module.exports = {
entry: './lib/public/Terminal.js',
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre",
exclude: /node_modules/
}
]
},
resolve: {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('./lib/common'),
core: path.resolve('./lib/core')
}
},
output: {
filename: 'xterm.js',
path: path.resolve('./lib2'),
library: 'Terminal',
libraryTarget: 'umd'
},
mode: 'development',
watch: true
};