aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 8032471..78d68a1 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,9 +1,15 @@
+/* eslint-env node */
+
+const path = require('path');
+
module.exports = {
entry: {
ui: './webAO/ui.js',
- client: './webAO/client.js'
+ client: './webAO/client.js',
+ master: './webAO/master.js'
},
output: {
+ path: path.resolve(__dirname, 'webAO'),
filename: '[name].b.js'
},
module: {
@@ -14,7 +20,15 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
- presets: ['@babel/preset-env']
+ presets: [
+ [
+ '@babel/preset-env', {
+ useBuiltIns: 'usage',
+ targets: 'defaults',
+ corejs: 3
+ }
+ ]
+ ]
}
}
}
@@ -22,4 +36,4 @@ module.exports = {
},
devtool: 'source-map'
-} \ No newline at end of file
+}; \ No newline at end of file