diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-06 20:19:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 20:19:45 +0100 |
| commit | ccbca8b9cede972480dd1ef7a73db71a99be9609 (patch) | |
| tree | e3e3c5b9232d86cf8ba18f898a90f1f2295c2b4e /webpack.config.js | |
| parent | 8d4cd02b7cbe955f5a5ce1666fc76a51db4be5d5 (diff) | |
| parent | 59c0773e95756aa62027db7a5754e7e986ca2b19 (diff) | |
Merge pull request #94 from caleb-mabry/add-linting
Adding AirBNB Linting style
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 42 |
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 +}; |
