Skip to content

make some improvements to CSS modules#183

Open
Luke-zhang-04 wants to merge 3 commits intoAnidetrix:mainfrom
Luke-zhang-04:main
Open

make some improvements to CSS modules#183
Luke-zhang-04 wants to merge 3 commits intoAnidetrix:mainfrom
Luke-zhang-04:main

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.

1 participant