Closed
Description
Hey there,
I feel like I'm missing something, but I have a pretty common use case where I'm importing a SCSS file into my component's <style>
. The file is importing just fine and my changes in the imported SCSS are reflected whenever I save my Component.html
file, but any changes to the .scss
file I'm importing doesn't trigger a compile + reload or HMR.
<div class="thing"></div>
<style lang="text/scss">
@import 'styles/pages/thing.scss';
</script>
- Do I need to manually trigger a Svelte compile through
sass-loader
somehow? If so, does that even make sense when usingsvelte-loader
? - Is there some magic I need to do in
svelte-loader
'spreprocess.style
option? - I should note that
hotReload
is also enabled, andemitCSS
is only enabled for production, not when usingwebpack-dev-server
.
Any suggestions? And please let me know if I can provide more information to help figure this one out. :) Thanks!
Metadata
Metadata
Assignees
Labels
No labels