diff options
author | pacien | 2022-11-19 18:54:02 +0100 |
---|---|---|
committer | pacien | 2022-11-19 18:54:02 +0100 |
commit | 8e0cda290d85d0a126093c9950c8030cfcb9d800 (patch) | |
tree | 8fe133b27a853789723b2647a56f64aad86b223c /viewer | |
parent | 559422535126af1484b50bfa22cc40375df1231b (diff) | |
download | ldgallery-8e0cda290d85d0a126093c9950c8030cfcb9d800.tar.gz |
viewer/build: use poll-based live reload in sandbox
Continuing to use a watch-based approach by default elsewhere.
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/.env.development | 1 | ||||
-rw-r--r-- | viewer/vue.config.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/viewer/.env.development b/viewer/.env.development index 0d87cf4..7e9a240 100644 --- a/viewer/.env.development +++ b/viewer/.env.development | |||
@@ -1,3 +1,4 @@ | |||
1 | VUE_APP_DEVSERVER_PORT=8085 | 1 | VUE_APP_DEVSERVER_PORT=8085 |
2 | VUE_APP_DEVSERVER_CONFIG_PATH=../example/ | 2 | VUE_APP_DEVSERVER_CONFIG_PATH=../example/ |
3 | VUE_APP_DATA_URL=~/ | 3 | VUE_APP_DATA_URL=~/ |
4 | VUE_APP_WEBPACK_WATCH_POLL=0 | ||
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({ | |||
41 | }, | 41 | }, |
42 | watchOptions: { | 42 | watchOptions: { |
43 | ignored: /node_modules/, | 43 | ignored: /node_modules/, |
44 | poll: parseInt(process.env.VUE_APP_WEBPACK_WATCH_POLL ?? 0), | ||
44 | }, | 45 | }, |
45 | }, | 46 | }, |
46 | 47 | ||