summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-06-23 09:09:01 +0000
committerTim Zallmann <tzallmann@gitlab.com>2017-06-23 09:09:01 +0000
commit9c7bf123564ee3c045c2aa3625f8a691f91a23aa (patch)
tree0a23832d04f5d9e49fac4d774ed77b5b42658b13
parentcf131aa4c7f24cd6aa430a33be6afca0a01fab21 (diff)
parent56b14667ed502cf62dee984c5754a8ef833ba103 (diff)
downloadgitlab-ce-9c7bf123564ee3c045c2aa3625f8a691f91a23aa.tar.gz
Merge branch 'hot-reload' into 'master'
hot reloading for .vue files Closes #33729 See merge request !12180
-rw-r--r--config/webpack.config.js4
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) {