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

make some improvements to CSS modules #183

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

make some improvements to CSS modules #183

wants to merge 3 commits into from

Conversation

Luke-zhang-04
Copy link

  • remove .module from [name] placeholder
    • The class names would come out like myFile_module_className__hash, when they should look like myFile_className__hash
  • feat: add modules.include option
    • options.modules overrides the regex/function from options.autoModules and makes everything a CSS module when I only want to change the scoped name.
    • I probably didn't approach this in the best way, but modifying existing options could create a breaking change.

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

Successfully merging this pull request may close these issues.

None yet

1 participant