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

fix(gatsby-plugin-sass): Change modules option around #29986

Merged
merged 2 commits into from
Mar 4, 2021
Merged

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Mar 4, 2021

Description

Luckily for us, with v4 the modules option is set to true by default. https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#400-2020-07-25

So we can explicitly set it to false for the non-module rule (because it increases performance: https://github.com/webpack-contrib/css-loader#modules) and for the module rule we don't have to set it to true anymore.

Related Issues

Fixes #29955

[ch26275]

@LekoArts LekoArts added this to To cherry-pick in V3 Release Hotfixes via automation Mar 4, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 4, 2021
@LekoArts LekoArts changed the title fix(gatsby-plugin-sass): Stop forcing modules option fix(gatsby-plugin-sass): Change modules option around Mar 4, 2021
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 4, 2021
@LekoArts LekoArts merged commit bba21cd into master Mar 4, 2021
@LekoArts LekoArts deleted the sass-29955 branch March 4, 2021 16:37
vladar pushed a commit that referenced this pull request Mar 4, 2021
@vladar vladar moved this from To cherry-pick to Backport PR opened in V3 Release Hotfixes Mar 4, 2021
vladar pushed a commit that referenced this pull request Mar 4, 2021
)

(cherry picked from commit bba21cd)

Co-authored-by: Lennart <lekoarts@gmail.com>
@vladar vladar moved this from Backport PR opened to Backported in V3 Release Hotfixes Mar 4, 2021
@vladar
Copy link
Contributor

vladar commented Mar 4, 2021

Published in gatsby-plugin-sass@4.0.1

wardpeet added a commit that referenced this pull request Mar 5, 2021
vladar pushed a commit that referenced this pull request Mar 5, 2021
vladar pushed a commit that referenced this pull request Mar 5, 2021
…)" (#30038)

This reverts commit bba21cd.

(cherry picked from commit 0f4de9d)
vladar pushed a commit that referenced this pull request Mar 5, 2021
…)" (#30038) (#30050)

This reverts commit bba21cd.

(cherry picked from commit 0f4de9d)

Co-authored-by: Ward Peeters <ward@coding-tech.com>
@vladar vladar moved this from Backported to Archived in V3 Release Hotfixes Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

gatsby-plugin-sass prevents configuration of CSS Loader
4 participants