-
-
Notifications
You must be signed in to change notification settings - Fork 432
Incorrect path names being passed to CSS loader. #368
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
This appears only to happen when using the |
Thx, I'll take a look. |
Haha, nice one! Seems like you've encountered a bug/unexpected behavior of the loader-utils. Starting with commit e6dc9c1daa02b1c87d9431e77c7ae9771b22f80b, the loader utils will recognize loader options objects and just return them. However, inside the sass-loader, I expected to always get a new object when calling |
This will bloat a lot of CSS files... working on a quickfix. |
A fix should ship with |
Wow, that's super tricky! Thanks so much for the speedy response and fix---excited to upgrade. |
I'm getting this:
but my babel-loader config is this:
The two variables inside options look like this:
So I'm not seeing what is expected to be changed. My
|
After upgrading from 4.1.1 to 5.0.0, I noticed that the CSS loader, with modules enabled, was generating colliding hashes for different components in my application. I did a little poking around and discovered that the paths being passed to the loader are not accurate: when my
localIdentName
is set to[path][name]__[local]--[hash:base64]
, I see Webpack pulling in CSS from multiple files (e.g.,app/components/logo-header/styles.scss
andapp/components/input/styles.scss
, both of which define a class.root
) but giving them the same identifier (e.g.,.app-components-logo-header-styles__root--TqfiOWwF9tjvyCbNgxKoY
, where one should have that identifier and the other should have.app-components-input-styles__root
with a unique hash).I'm working on putting together a minimum working example reproducing the bug, but I'd be grateful for any thoughts you had in the meantime. Thanks in advance for your help, and thanks for all your hard work on this repo!
The text was updated successfully, but these errors were encountered: