Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Update environment.js config (dotenv)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemtnz committed Apr 11, 2018
1 parent 9089026 commit 8a55b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/webpack/environment.js
Expand Up @@ -5,8 +5,8 @@ const custom = require('./custom.js');

const dotenvFiles = [
`.env.${process.env.NODE_ENV}.local`,
'.env.local',
`.env.${process.env.NODE_ENV}`,
'.env.local',
'.env',
];

Expand All @@ -15,7 +15,7 @@ dotenvFiles.forEach(dotenvFile => {
});

environment.config.merge(custom);
environment.plugins.set(
environment.plugins.append(
'Environment',
new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(process.env)))
);
Expand Down

0 comments on commit 8a55b9e

Please sign in to comment.