diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-06 12:24:43 -0500 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-06 12:24:43 -0500 |
| commit | 59c0773e95756aa62027db7a5754e7e986ca2b19 (patch) | |
| tree | e3e3c5b9232d86cf8ba18f898a90f1f2295c2b4e /webpack.config.js | |
| parent | 28c7c81026abc9829b012c5ea5f707c441d7d1b2 (diff) | |
Lint fix
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/webpack.config.js b/webpack.config.js index 0c16db4..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), + }), ], }; |
