From 5685e2b1714c8d85e505e9eccee549723773aaab Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Tue, 15 May 2018 21:20:00 -0500 Subject: Move files to webAO folder; GoldenLayout works! --- webpack.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..48f638c --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,20 @@ +module.exports = { + entry: './webAO/ui.js', + output: { + filename: './webAO/ui.b.js' + }, + module: { + rules: [ + { + test: /\.js?$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader', + options: { + presets: ['es2015'] + } + } + } + ] + } +} \ No newline at end of file -- cgit From 86d03dea6d34f570e482381da29df79585756654 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Sat, 19 May 2018 01:36:33 -0500 Subject: Fix code broken from refactoring --- webpack.config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index 48f638c..98d96d0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,10 @@ module.exports = { - entry: './webAO/ui.js', + entry: { + ui: './webAO/ui.js', + client: './webAO/client.js' + }, output: { - filename: './webAO/ui.b.js' + filename: '[name].b.js' }, module: { rules: [ @@ -16,5 +19,7 @@ module.exports = { } } ] - } + }, + + devtool: 'source-map' } \ No newline at end of file -- cgit