diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-06 12:21:06 -0500 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-06 12:21:06 -0500 |
| commit | 3c79e2fdcc3c0b6e81194eca190e8719fbf31903 (patch) | |
| tree | c6f1754aee97deda369010d23585ca72aebd4ad3 /webpack.config.js | |
| parent | 1ded602565d0f87209dc9c5918bae78e6a0aa440 (diff) | |
| parent | 8d4cd02b7cbe955f5a5ce1666fc76a51db4be5d5 (diff) | |
Merge branch 'master' of https://github.com/AttorneyOnline/webAO into add-linting
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 33c639f..f692749 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,11 @@ /* eslint-env node */ const path = require('path'); +const dotenv = require('dotenv') +const webpack = require('webpack') + +// this will update the process.env with environment variables in .env file +dotenv.config(); module.exports = { entry: { @@ -39,7 +44,16 @@ module.exports = { }, ], }, - + performance: { + hints: false, + maxEntrypointSize: 512000, + maxAssetSize: 512000 + }, + plugins: [ + new webpack.DefinePlugin({ + 'process.env': JSON.stringify(process.env) + }) + ], devtool: 'source-map', mode: 'production', }; |
