aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/webpack.config.js b/webpack.config.js
index ae56719..75a8c0b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,8 +1,8 @@
/* eslint-env node */
const path = require('path');
-const dotenv = require('dotenv')
-const webpack = require('webpack')
+const dotenv = require('dotenv');
+const webpack = require('webpack');
// this will update the process.env with environment variables in .env file
dotenv.config();
@@ -11,7 +11,7 @@ module.exports = {
entry: {
ui: './webAO/ui.js',
client: './webAO/client.js',
- master: './webAO/master.js'
+ master: './webAO/master.js',
},
devtool: 'source-map',
devServer: {
@@ -35,33 +35,33 @@ 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'
+ filename: '[name].b.js',
},
performance: {
hints: false,
maxEntrypointSize: 512000,
- maxAssetSize: 512000
- },
+ maxAssetSize: 512000,
+ },
plugins: [
new webpack.DefinePlugin({
- 'process.env': JSON.stringify(process.env)
- })
+ 'process.env': JSON.stringify(process.env),
+ }),
],
-}; \ No newline at end of file
+};