When using stylus @require and snowpack/plugin-svelte hot reloading isn't applying style changes #2034
Replies: 3 comments 4 replies
-
Interesting! I'm not suprised that this isn't working, since We have this logic already in the @snowpack/plugin-sass plugin, I wonder if we could turn that into something more generalizable that you could add as your own plugin to say "hey, this file changed, treat it as if this other file changed". Then you could tell Snowpack directly "when a |
Beta Was this translation helpful? Give feedback.
-
For some additional information. Svelte preprocessors are able to return a list of dependencies which should allow us to draw a complete dependency graph. What I'm not certain about is where this breaks down, it could be |
Beta Was this translation helpful? Give feedback.
-
I'm a bit confused about the issue thing. Should I create an issue to close with the PR for tracking purposes or just make the PR? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following stylus declaration
The stylus file just has
When first running snowpack, my styles work as expected, however if I change the font color to Green, no change occurs. I have to stop the server and restart it to see the change.
Is this a bug, or have I done something wrong?
snowpack.config.js
svelte.config.js
Beta Was this translation helpful? Give feedback.
All reactions