-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Behaviour of the "[path]" placeholder have been changed in a refactor commit #967
Comments
Please create minimum reproducible test repo |
It should be clear enough by seeing here https://github.com/webpack-contrib/css-loader/pull/920/files#diff-2b4ca49d4bb0a774c4d4c1672d7aa781L108. If you are looking for the config
If you are looking for the repo |
Still can't understand, what is output was previously and what is output actually, no need link on source code, just clarify your problem |
The |
@fa93hws looks like regression, feel free to send a PR |
No problem. OK to have this function back? https://github.com/webpack-contrib/css-loader/pull/920/files#diff-2b4ca49d4bb0a774c4d4c1672d7aa781L108 |
No, css classes can have non standard characters, so we can't back this function |
stop, why you think it is bug? Looks like it is expected behavior, and looks it is breaking change, i think you should use own |
Because that commit says it's a "refactor" and a "refactor" normally won't change the behavior of the code. |
Anyway, if it is expected behavior, I am happy to implement the |
Sometimes refactor has breaking change. Css allow to use |
Let's think about this, because maybe it is really not good DX |
In version@2 it was |
2.some.version is with I will replace the '/' to '-' only then. |
Let's keep open i think about this in near future, as workaround you can use custom |
No problem, Thanks |
Yes, it is big regression 😞 thanks for catching this |
Expected Behavior
[path]
placeholder givespath-to-file
Actual Behavior
[path]
placeholder givespath/to/file
How Do We Reproduce?
Should be very clear in this commit. #920
normalizeIdentifier
is removed.The text was updated successfully, but these errors were encountered: