feat: Add manual polling option

Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-12-06 11:00:16 +01:00
parent 8e9feab97b
commit 13221b202a

View File

@ -62,8 +62,8 @@ export default defineConfig({
watch: {
// Ignore some paths
ignored: [],
// support WSL strange things
usePolling: !!process.env.WSL_DISTRO_NAME
// support polling and WSL
usePolling: !!(process.env.USE_POLLING ?? process.env.WSL_DISTRO_NAME)
}
}
},