-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby-plugin-sass prevents configuration of CSS Loader #29955
Comments
+1! I opened up the issues tab to report this very same thing! |
Hi, thanks for the issue! Just to make sure: Did this only occur with |
Hello! I believe it might have existed before, I am only impacted now since we are moving to Gatsby 3.0.0 and refactoring our imports. We did not use I believe the overwrite occurs because it used to be a boolean only option, but it can now be an object. I might be mistaken though. If I can provide any further help, feel free to reach out, Thanks and have a nice day |
Thanks for the info and the note that the README will need an update. We'll look into both things :) |
@LekoArts Thanks for the quick turnaround on this! Much appreciated |
@LekoArts Just for my own understanding but when/how will the hotfix make it out to users? Sorry not incredibly well versed in open source cycles |
@juanbiberretta It's been released in We publish a minor every two weeks and hotfixes ad-hoc. |
Description
When setting the following options to
gatsby-config.js
:We expect the exports of
css-loader
to becamelCaseOnly
and notdashesOnly
(default).Steps to reproduce
Very straightforward, just place this in a Gatsby SASS project.
Expected result
The webpack configuration should be modified accordingly and the exported values should be in camel case.
Actual result
Nothing changes. After investigation, it seems that the culprit is in
gatsby-plugin-sass/gatsby-node.js
where there is the following:This causes the modules option to be overwritten even if it was provided. There should be a check to see if there is already a modules option to prevent overwriting.
Environment
The text was updated successfully, but these errors were encountered: