Skip to content

Commit 05172cb

Browse files
Merge pull request #329 from muffinresearch/fix-production-built-files
Define NODE_ENV=production in webpack's prod config
2 parents 250f844 + cbbac79 commit 05172cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webpack.prod.config.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default {
5050
plugins: [
5151
new webpack.DefinePlugin({
5252
CLIENT_CONFIG: JSON.stringify(clientConfig),
53+
'process.env.NODE_ENV': JSON.stringify('production'),
5354
}),
5455
// Replaces server config module with the subset clientConfig object.
5556
new webpack.NormalModuleReplacementPlugin(/config$/, 'client-config.js'),

0 commit comments

Comments
 (0)