Closed NikolayMakhonin closed 1 year ago
I can't reproduce this. cloning the repo provided, running pnpm i && pnpm dev
and then editing style.css to change color: red
to color: blue
, the style is reloaded in the browser and change is visible.
dependencies of css are collected here: https://github.com/sveltejs/vite-plugin-svelte/blob/0913cd3174a331f1003a051096c3dba369e36824/packages/vite-plugin-svelte/src/preprocess.js#L90 and changing them causes a change event on the .svelte file here https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/src/utils/watch.js#L27
Please run DEBUG=vite:vite-plugin-svelte:* pnpm dev --debug
and check for this log message
emitting virtual change event for "${dependant}" because depdendency "${filename}" changed
closing as invalid, reproduction doesn't work and additional information hasn't been provided.
it can be reopened once we get that
Describe the bug
See this repo
I just create minimal svelte-kit app with these changes only:
+page.svelte
style.css
The watch/autorefresh is not working if I change the style.css file.
Reproduction URL
https://github.com/NikolayMakhonin/svelte-kit-issues/tree/postcss-import-watch
Reproduction
1) pnpm run dev 2) change style.css 3) you can see that the web page is not refreshing
Logs
No response
System Info