Prevent watcher from running during the build (#3207)
* Prevent watcher from running during the build * Adds a changeset
This commit is contained in:
parent
18762d6a0a
commit
22cb4b7b32
2 changed files with 9 additions and 0 deletions
5
.changeset/big-ducks-search.md
Normal file
5
.changeset/big-ducks-search.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Disables file watching during the build
|
|
@ -83,6 +83,10 @@ export async function createVite(
|
|||
proxy: {
|
||||
// add proxies here
|
||||
},
|
||||
watch: {
|
||||
// Prevent watching during the build to speed it up
|
||||
ignored: mode === 'build' ? ['**'] : undefined,
|
||||
}
|
||||
},
|
||||
css: {
|
||||
postcss: astroConfig.style.postcss || {},
|
||||
|
|
Loading…
Reference in a new issue