Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit b8b3e4d

Browse files
committed
🔧 Deployment Specific Environment
1 parent 52ab3dc commit b8b3e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎webpack/webpack.common.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const DotEnv = require('dotenv-webpack');
66

77
const APP_ENV = process.env.APP_ENV || 'local';
88

9-
const DotEnvPlugin = new DotEnv({
9+
const DotEnvWebPackPlugin = new DotEnv({
1010
systemvars: true, // load all the predefined 'process.env' variables which will trump anything local per dotenv specs. (useful for CI purposes)
1111
safe: true, // load '.env.example' to verify the '.env' variables are all set.
1212
path: path.join(__dirname, '..', `.env.${APP_ENV}`),
@@ -73,6 +73,6 @@ module.exports = {
7373
new CopyWebpackPlugin({
7474
patterns: [{ from: path.join(__dirname, 'source'), to: 'dest', noErrorOnMissing: true }],
7575
}),
76-
DotEnvPlugin,
76+
DotEnvWebPackPlugin,
7777
],
7878
};

0 commit comments

Comments
 (0)