-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
question: is 'live-reload' functionality supposed to work with imported sass files? #107
Comments
Thx for the sample project. With "live reload": Do you mean page reload on file change or do you actually mean Hot Module Replacement (HMR), which replaces the stylesheets on the fly (#37)? |
hi @jhnns, i was actually set up for HMR, but i tried with webpack-dev-server without using HMR and it still didn't update when i changed the imported scss file... |
I am also finding this. If I have a setup:
Where app imports variables, and variables imports styles, an update to styles has no effect, but an update to either app or variables does have an effect. FWIW, |
I think the issue in general is that you require webpack modules with |
The issue is that I can’t import _variables or _style, as they contain nothing but variables. Importing in throws an error. |
Thanks @jacobp100, your example and mention of |
I'm sure that would work, although there's also variants/b that can be used in place, and whether it points to a or b is specified in the webpack config. |
There's currently an issue with the style-loader which makes HMR impossible. |
HMR is not a concern of the sass-loader |
i have this in my 'main' sass file:
and then another sass file at
./app/module-1/_module-1.scss
,but when i edit
_module-1.scss
the live-reload functionality is unaware and doesn't refresh.is there some setup which will be aware of these imported files?
here is a link to my sample project on github for reference.
best,
tony.
The text was updated successfully, but these errors were encountered: