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

Add support for pure CSS Modules #985

Closed
Timer opened this issue Aug 20, 2019 · 1 comment · Fixed by #1008
Closed

Add support for pure CSS Modules #985

Timer opened this issue Aug 20, 2019 · 1 comment · Fixed by #1008

Comments

@Timer
Copy link

Timer commented Aug 20, 2019

  • Operating System: N/A
  • Node Version: N/A
  • NPM Version: N/A
  • webpack Version: N/A
  • css-loader Version: 3.2.0

Feature Proposal

Ability to use modules: 'pure', a very-desirable CSS Modules mode.

Feature Use Case

Defining global CSS using CSS Modules is arguably incorrect behavior, which modules: true / modules: 'local' allows.

The underlying postcss-modules-local-by-default library has a more desirable mode called pure, which only allows a :global selector when combined with :local.
This ensures users are not defining global effects within a CSS Modules file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants