diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-23 09:09:01 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-23 09:09:01 +0000 |
commit | 9c7bf123564ee3c045c2aa3625f8a691f91a23aa (patch) | |
tree | 0a23832d04f5d9e49fac4d774ed77b5b42658b13 /config/webpack.config.js | |
parent | cf131aa4c7f24cd6aa430a33be6afca0a01fab21 (diff) | |
parent | 56b14667ed502cf62dee984c5754a8ef833ba103 (diff) | |
download | gitlab-ce-9c7bf123564ee3c045c2aa3625f8a691f91a23aa.tar.gz |
Merge branch 'hot-reload' into 'master'
hot reloading for .vue files
Closes #33729
See merge request !12180
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index f27b7cae310..2e8c94655c1 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -241,6 +241,7 @@ if (IS_DEV_SERVER) { port: DEV_SERVER_PORT, headers: { 'Access-Control-Allow-Origin': '*' }, stats: 'errors-only', + hot: DEV_SERVER_LIVERELOAD, inline: DEV_SERVER_LIVERELOAD }; config.output.publicPath = '//' + DEV_SERVER_HOST + ':' + DEV_SERVER_PORT + config.output.publicPath; @@ -248,6 +249,9 @@ if (IS_DEV_SERVER) { // watch node_modules for changes if we encounter a missing module compile error new WatchMissingNodeModulesPlugin(path.join(ROOT_PATH, 'node_modules')) ); + if (DEV_SERVER_LIVERELOAD) { + config.plugins.push(new webpack.HotModuleReplacementPlugin()); + } } if (WEBPACK_REPORT) { |