aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-01-03 04:33:52 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-01-03 04:33:52 +0300
commit688ffb530c7c12a10666462dd0bc30b6cec5064f (patch)
tree06a2f4bdd575aa0dfd8606b165ebff3d4397574d /webpack.config.js
parentTypo fix in GHA (diff)
Cleans Up Dependencies
Updates package.json to keep only the bare minimum required for production in dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 2d13ac2..93e7e9d 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -2,7 +2,7 @@ const path = require("path")
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyPlugin = require('copy-webpack-plugin');
const webpack = require("webpack")
-require("dotenv").config();
+if (process.env.NODE_ENV === "development") { require("dotenv").config(); }
module.exports = {
entry: "./src/index.tsx",