-
Notifications
You must be signed in to change notification settings - Fork 807
CSS in public seems to be obliterated when live reloading does its thing #108
Comments
Transferring this from the svelte repo to the template repo. That said, I can't reproduce this. |
this is how it is supposed to work right? I'm not 100% sure about svelte but this is how it works in other hot-reload situations |
|
Closing due to inactivity. |
The development cadence of the project led us to surmise that a similar statement would be appearing on the repository's front page in the not too distant future. It's a really interesting idea and I hope someone with more resources explores it further some day. |
tee fucking hee |
This issue happened to me yesterday. Strangely after a good night of sleep the issue disappeared... |
I'm evaluating Svelte for an upcoming project and in simply playing around with an application I downloaded via the REPL I have noticed an extremely annoying behavior when live reloading in dev mode.
I want my CSS to live in CSS files both because I don't want Svelte touching my selectors (see sveltejs/svelte#3104) and because the notion of single file components is incompatible with the way my cross-functional team implements and maintains style guides.
If I make changes to
/public/global.css
and save them then these changes are reflected in the browser window exactly as expected.If I then make any change to my actual component
.svelte
file, everything in/public/global.css
seems to completely disappear until I go make a nonsense change there and save it again. Manually refreshing the page does not do anything to help. This is extremely annoying and makes development rather tedious.As I am a newcomer to both Svelte and Rollup, I am uncertain as to whether this is something to be expected with the default config coming out of the REPL's download button, a genuine bug, or merely an "opinion" being expressed by the framework. It's perfectly fine if it is, I just need to know so I can make a call as to whether or not we can work with Svelte.
The text was updated successfully, but these errors were encountered: