-
-
Notifications
You must be signed in to change notification settings - Fork 211
Regression with - Hotloading imported css styles issue 8 #58
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
Comments
it's supposed to work (and it's working for me). What is your version of postcss-import? If v8, can you try v7 please? |
installing postcss-import@7.1.3 did not resolve the issue. To expand a little I have a main.js file which includes a main.css file:
I have a main.css file which imports all my styles:
Facts so far:
|
@MoOx could you post a "working" |
The only thing that is required is |
updating |
Found something interesting in console.log(opts);
and console.log(Object.keys(state.importedFiles)) seems to show that it is aware of my base.css file:
Shouldn't |
addDependencyTo is what you passed to postcss-import. So it looks like a problem with your config or runtime env. |
@kvnlnt did you ever figure out the culprit? i'm having the same issue in my setup. |
I'm also seeing this behavior. |
@MoOx I created the following repo to show the problem exists in a super simple reproduction -- https://github.com/buob/postcss-import-issue (despite the fact I'm passing in The hot reloading works when you edit "required-file", but it doesn't when editing "imported-file". Hopefully this helps, let me know if I'm making a stupid mistake, totally possible. |
Dang, well it was a stupid mistake -- I was using I hope a maintainer is found! I appreciate the work on these plugins! 🌠 |
@MoOx Dang, appreciate the help, but adding
|
@davidcalhoun |
Watch/hotloading not working for @import'd css files.
Here's my webpack.config.js
I'm starting my dev server with:
My CSS file looks like this
Any changes to base.css results in nothing. It also appears to have been an issue in the past (#8). Is there some kind of incompatibility with webpack-dev-server, postcss-loader, postcss-import, etc? Starting here since my previous configuration which relied on cssnext-loader worked.
The text was updated successfully, but these errors were encountered: