Changes from @import-ed CSS files are not applied
kucrut opened this issue · 1 comments
kucrut commented
Even after reloading the browser, changes from CSS files that are @import
-ed from <style>
tags are not applied, until the svelte file is saved. I can confirm that the issue is happening on MacOS & (Arch) Linux.
Below is a video demonstrating it on vanilla Elder template.
elder-css-changes-not-applied.mp4
eight04 commented
I think the @import
statement is processed by clean-css:
elderjs/src/rollup/rollupPlugin.ts
Lines 293 to 304 in 162972c
Which is called after the build.
To fix this, we have to process @import
statement in the transform function and set imported files as dependencies.