-
-
Notifications
You must be signed in to change notification settings - Fork 429
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-dev-server not watching changes in my imports #130
Comments
Ok now I'm completely stuck I tried to switch all my imports to require them directly with webpack but now I'm hitting the second bug So I can't use imports as they don't trigger webpack hot loader and I can't use require or node-sass craps out. How are people dealing with this right now?? |
Does webpack recompile anything if you change a file? It could be that just HMR is not working. I don't know about a watcher bug... what is your OS? Are any Symlinks involved (like via |
Is that a duplicate of #102? |
From my entry point I require my main styles.scss It isn't exactly the same issue as the other one as here even the first level import doesn't work. |
I met with the same problem, as described by the @newtonianb. I use windows 7, #102 is same issue |
I have the same issue. It seems to happen only on windows because on my mac it works fine. |
Thanks alot! |
Could you guys check out the current master branch and check if it works for you? I've heavily refactored the import mechanism and need more tests. |
@jhnns just ran a quick test up to 3 level import, all looks good (win 8.1, npm 2.10.1) ! thanks alot |
Actually there is something a bit dodgy although I can't confirm whether it's a new issue or from before
styles/my_style.scss
styles/folder_a/_my_other_style
It seems my path is relative to the place it's being imported from? Is that normal? I was expecting this to work |
I have added a chapter to the README about It's way more complicated than in LESS which provides a mechanism that rewrites urls... |
I just setup webpack-dev-server below are some of my configs
assets/entry.js
assets/styles/style.scss
Is this supposed to work? What's the solution for this with webpack-dev-server and hot module replacement setup?
As a work around what I could do is have all my imports be required from my entry.js file (that works) the issue is what about my global SCSS variables and mixins, I would have to import them in each file, wouldn't that slow things down alot? What is the right way to go about this?
The text was updated successfully, but these errors were encountered: