DEV Community

Vexkiddy
Vexkiddy

Posted on

Compiling external .scss files when changed ?

Does anyone know how to setup Parcel and Svelte so that when you save external .scss that are imported into components, that it forces a recompile of all components that use that .scss ?

So I have something like this in lots of different components, but saving the .scss file doesn't update anything, only resaving the actual component will update the view :(

<style lang="scss">
@import 'src/css/variables.scss';

.app-wrapper {
background-color: $background-color;
}
</style>

Top comments (0)