Skip to content

Commit

Permalink
fix: configure webpack-dotenv to use production env as defaults (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Butterworth committed Sep 25, 2019
1 parent 6c9d8bc commit 0a4fdea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ module.exports = Merge.smart(commonConfig, {
}),
new Dotenv({
path: path.resolve(PROJECT_ROOT, '.env.development'),
systemvars: true,
}),
// when the --hot option is not passed in as part of the command
// the HotModuleReplacementPlugin has to be specified in the Webpack configuration
Expand Down
1 change: 1 addition & 0 deletions config/webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ module.exports = Merge.smart(commonConfig, {
}),
new Dotenv({
path: path.resolve(PROJECT_ROOT, '.env'),
systemvars: true,
}),
new HtmlWebpackNewRelicPlugin({
// This plugin fixes an issue where the newrelic script will break if
Expand Down

0 comments on commit 0a4fdea

Please sign in to comment.