Skip to content

Commit

Permalink
Define REPLACE_MODULES in webpack production build as well (Graylog2#…
Browse files Browse the repository at this point in the history
…4333)

Fixes an issue with running the production build.
  • Loading branch information
bernd authored and edmundoa committed Nov 9, 2017
1 parent 2d0c065 commit 77d4cef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graylog2-web-interface/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ if (TARGET === 'build') {
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
REPLACE_MODULES: false, // Do not use HMR in production
}),
new webpack.optimize.UglifyJsPlugin({
minimize: true,
Expand Down

0 comments on commit 77d4cef

Please sign in to comment.