Skip to content
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 HMR no longer works with postcss-loader 1.0.0 #122

Closed
troutowicz opened this issue Oct 20, 2016 · 6 comments
Closed

Webpack HMR no longer works with postcss-loader 1.0.0 #122

troutowicz opened this issue Oct 20, 2016 · 6 comments

Comments

@troutowicz
Copy link
Contributor

Title sums it up, reverting to postcss-loader 0.13.0 is my fix for now.

@ai
Copy link
Contributor

ai commented Oct 20, 2016

What you mean exactly? What part of CSS didn't reloading? Variables in JS files? Entire CSS? Config changes?

@troutowicz
Copy link
Contributor Author

I have an index.scss file which imports other scss files. Changes made to those imported files are not caught by Webpack's HMR. This works correctly in 0.13.0.

@ai
Copy link
Contributor

ai commented Oct 20, 2016

Fast solution: use postcss-smart-import, instead of postcss-import

I will update docs later, about this problem with postcss-import

@troutowicz
Copy link
Contributor Author

troutowicz commented Oct 20, 2016

Thanks @ai that seems to fix things!

@ai
Copy link
Contributor

ai commented Oct 20, 2016

@troutowicz here is a issue in postcss-import, could you ping it, so postcss-import will fix a problem? postcss/postcss-import#233

@ai
Copy link
Contributor

ai commented Oct 21, 2016

Done b6c38c1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants