aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js16
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',
};