-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to imported SCSS in style tag is not triggering a recompile / hot reload #72
Comments
There is this PR #66 I think you have to manually hook it up... not sure whether the pre-processor should do it automatically or not. Here is the relevant docs on this regard: https://github.com/sveltejs/svelte-loader/blob/master/README.md#external-dependencies |
Hmm, I might be misunderstanding what Are you saying that I need to list every SCSS file I need to import in
|
I fix recompile by adding dependencies #75 here and in svelte-preprocess sveltejs/svelte-preprocess#16 |
closed via #75 — thanks @Ti-webdev ! |
Can anyone show exact webpack config with watching for imported sass files? |
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 myComponent.html
file, but any changes to the.scss
file I'm importing doesn't trigger a compile + reload or HMR.sass-loader
somehow? If so, does that even make sense when usingsvelte-loader
?svelte-loader
'spreprocess.style
option?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!
The text was updated successfully, but these errors were encountered: