aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-06 12:23:59 -0500
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-06 12:23:59 -0500
commit28c7c81026abc9829b012c5ea5f707c441d7d1b2 (patch)
tree5e68fcb9b2b36108663ede1e9f2cb5b0a72eac01 /webpack.config.js
parent3c79e2fdcc3c0b6e81194eca190e8719fbf31903 (diff)
Fixing messy merge conflict
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js44
1 files changed, 26 insertions, 18 deletions
diff --git a/webpack.config.js b/webpack.config.js
index f692749..0c16db4 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -11,12 +11,17 @@ module.exports = {
entry: {
ui: './webAO/ui.js',
client: './webAO/client.js',
- master: './webAO/master.js',
+ master: './webAO/master.js'
},
- output: {
- path: path.resolve(__dirname, 'webAO'),
- filename: '[name].b.js',
+ devtool: 'source-map',
+ devServer: {
+ static: {
+ directory: path.join(__dirname, 'webAO'),
+ },
+ compress: true,
+ port: 8080,
},
+ mode: 'production',
module: {
rules: [
{
@@ -30,19 +35,23 @@ module.exports = {
'@babel/preset-env', {
useBuiltIns: 'usage',
targets: [
- 'defaults',
- 'Safari > 3',
- 'Opera > 8',
- 'Android > 3',
+ "defaults",
+ "Safari > 3",
+ "Opera > 8",
+ "Android > 3"
],
- corejs: 3,
- },
- ],
- ],
- },
- },
- },
- ],
+ corejs: 3
+ }
+ ]
+ ]
+ }
+ }
+ }
+ ]
+ },
+ output: {
+ path: path.resolve(__dirname, 'webAO'),
+ filename: '[name].b.js'
},
performance: {
hints: false,
@@ -54,6 +63,5 @@ module.exports = {
'process.env': JSON.stringify(process.env)
})
],
- devtool: 'source-map',
- mode: 'production',
+
};