diff options
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/webpack.config.js b/webpack.config.js index ae56719..f692749 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,17 +11,12 @@ module.exports = { entry: { ui: './webAO/ui.js', client: './webAO/client.js', - master: './webAO/master.js' + master: './webAO/master.js', }, - devtool: 'source-map', - devServer: { - static: { - directory: path.join(__dirname, 'webAO'), - }, - compress: true, - port: 8080, + output: { + path: path.resolve(__dirname, 'webAO'), + filename: '[name].b.js', }, - mode: 'production', module: { rules: [ { @@ -35,23 +30,19 @@ module.exports = { '@babel/preset-env', { useBuiltIns: 'usage', targets: [ - "defaults", - "Safari > 3", - "Opera > 8", - "Android > 3" + 'defaults', + 'Safari > 3', + 'Opera > 8', + 'Android > 3', ], - corejs: 3 - } - ] - ] - } - } - } - ] - }, - output: { - path: path.resolve(__dirname, 'webAO'), - filename: '[name].b.js' + corejs: 3, + }, + ], + ], + }, + }, + }, + ], }, performance: { hints: false, @@ -63,5 +54,6 @@ module.exports = { 'process.env': JSON.stringify(process.env) }) ], - -};
\ No newline at end of file + devtool: 'source-map', + mode: 'production', +}; |
