Skip to content

Commit 0a4fdea

Browse files
author
Adam Butterworth
authored
fix: configure webpack-dotenv to use production env as defaults (#5)
1 parent 6c9d8bc commit 0a4fdea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/webpack.dev.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ module.exports = Merge.smart(commonConfig, {
126126
}),
127127
new Dotenv({
128128
path: path.resolve(PROJECT_ROOT, '.env.development'),
129+
systemvars: true,
129130
}),
130131
// when the --hot option is not passed in as part of the command
131132
// the HotModuleReplacementPlugin has to be specified in the Webpack configuration

config/webpack.prod.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ module.exports = Merge.smart(commonConfig, {
152152
}),
153153
new Dotenv({
154154
path: path.resolve(PROJECT_ROOT, '.env'),
155+
systemvars: true,
155156
}),
156157
new HtmlWebpackNewRelicPlugin({
157158
// This plugin fixes an issue where the newrelic script will break if

0 commit comments

Comments
 (0)