summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-06-15 17:46:15 +1000
committerSimon Knox <psimyn@gmail.com>2017-06-15 17:46:15 +1000
commit56b14667ed502cf62dee984c5754a8ef833ba103 (patch)
tree9d6dbc2f526bad1dc8353e8c0819af88e7736769
parent42aaae9916b7b76da968579fcc722067947df018 (diff)
downloadgitlab-ce-hot-reload.tar.gz
hot reloading for .vue fileshot-reload
-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 3c2455ebf35..8f2c2f332c5 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -249,6 +249,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;
@@ -256,6 +257,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) {