Skip to content

Commit

Permalink
Fix memory problems with webpack-dev-server in dev mode (#2433)
Browse files Browse the repository at this point in the history
Before this webpack was using hashes in filenames for the generated
files which are stored in memory. That meant on every change new files
have been generated and stored in memory, quickly filling up the
available memory.

With this change we do not use hashes for filenames in development mode
to avoid filling up memory.

Refs webpack/webpack#1914
  • Loading branch information
bernd authored and joschi committed Jun 29, 2016
1 parent af3d684 commit 3ab5918
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions graylog2-web-interface/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ if (TARGET === 'start') {
inline: true,
progress: true,
},
output: {
path: BUILD_PATH,
filename: '[name].js',
publicPath: '/',
hotUpdateChunkFilename: "[id].hot-update.js",
hotUpdateMainFilename: "hot-update.json",
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({DEVELOPMENT: true}),
Expand Down

0 comments on commit 3ab5918

Please sign in to comment.