-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Webpack watch isn't working on Windows for nested imports #102
Comments
Mhmm I don't have a working Windows setup to reproduce the error. Would be great if you could give me some insight. The sass-loader is not a huge project, so it should be fairly understandable. This is the line that makes the included file known to webpack. |
Just hit the exact same scernario/problem! Windows 8.1 definitely a bug |
Which Windows version do you use @gabrielenosso? |
Windows 7, so it doesn't seem to be related to a particular version of Windows... |
This is a huge problem, it seems also when ran through webpack-dev-server it can't even do past one level imports, the changes in imports don't trigger a webpack-dev-server change, I'm assuming it's related. Could someone please find a way to fix this, right now it's just unusable |
Do you use |
Hi, not that I know of no |
i add path.normalize() for dependencies and it works ) I hope it will help in solving the problem |
Thank you @strayiker ! I do recall other gulp scripts having issues on windows due to paths. Where exactly do you put this function and make use of it? |
Thank you @strayiker, it helped me |
Nice one @strayiker |
Will be fixed with the next major version. You can already test the master branch. |
Thanks alot! Just curiosity when is the next major version planned for? |
Fixed with 2.0.0 |
Hi guys,
I created a repository in which you can check the bug: https://github.com/gabrielenosso/sass-loader-watch-problem .
I have a .js file which requires just one main SASS file: ./style.scss.
This file imports the file ./classes/button.scss.
The button.scss file imports another file: ./partials/_button.scss.
Practically, if you run the webpack dev server in hot mode (just executing "npm start"), it automatically reloads if you save the "style.scss" file (root of scss) or the ./classes/button.scss file (1st level of @import), but it doesn't reload if you save the ./partials/_button.scss file (2nd level of import).
It only happens on Windows. Could it be a bug related to '' and '/' used for paths differently in Mac and Win? Or do you have any clue?
The text was updated successfully, but these errors were encountered: