From 559422535126af1484b50bfa22cc40375df1231b Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 19 Nov 2022 18:39:15 +0100 Subject: viewer/build: exclude node_modules from live reload That directory can be huge and expensive to watch for changes. The documenation recommends excluding it. --- viewer/vue.config.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'viewer/vue.config.js') diff --git a/viewer/vue.config.js b/viewer/vue.config.js index e49909f..ef6d262 100644 --- a/viewer/vue.config.js +++ b/viewer/vue.config.js @@ -39,6 +39,9 @@ module.exports = defineConfig({ cache: { type: 'filesystem', }, + watchOptions: { + ignored: /node_modules/, + }, }, chainWebpack: config => { -- cgit v1.2.3 From 8e0cda290d85d0a126093c9950c8030cfcb9d800 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 19 Nov 2022 18:54:02 +0100 Subject: viewer/build: use poll-based live reload in sandbox Continuing to use a watch-based approach by default elsewhere. --- viewer/vue.config.js | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer/vue.config.js') diff --git a/viewer/vue.config.js b/viewer/vue.config.js index ef6d262..ffaaeee 100644 --- a/viewer/vue.config.js +++ b/viewer/vue.config.js @@ -41,6 +41,7 @@ module.exports = defineConfig({ }, watchOptions: { ignored: /node_modules/, + poll: parseInt(process.env.VUE_APP_WEBPACK_WATCH_POLL ?? 0), }, }, -- cgit v1.2.3