mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
watch files during development both frontend and backend (#336)
This commit is contained in:
parent
8dd3f106ca
commit
5cda571999
2 changed files with 6 additions and 1 deletions
5
.changeset/fair-students-cough.md
Normal file
5
.changeset/fair-students-cough.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix an issue with how files are watched during development
|
|
@ -428,7 +428,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
|
||||||
lockfile: null,
|
lockfile: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isWatch: isHmrEnabled,
|
isWatch: mode === 'development',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const snowpackRuntime = snowpack.getServerRuntime();
|
const snowpackRuntime = snowpack.getServerRuntime();
|
||||||
|
|
Loading…
Reference in a new issue