-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Configure files to be processed as css-modules #2116
Comments
Why is it unclean? Assuming all I don't think this is something we'll support. |
The include/exclude api differentiates it. Also I would say going "all-in" on modules is more common than mixing modules/non-modules. The exception is
Just personal preference to have standard file extensions. I see a similar issue and response for people wanting |
The general idea here is: if it's just "preference", avoid adding yet an option for it. Every new option is more surface for documentation and maintenance. |
i have create a plugin to support it ! https://github.com/Summer-andy/vite-plugin-transform-css-modules |
Is your feature request related to a problem? Please describe.
The css modules feature currently requires the file to have a
.module.css
extension. I'd like to be able to just use.css
Describe the solution you'd like
Describe alternatives you've considered
Rename all the css files to use the convention. Simple enough, just find it unclean, less portable/tooling-specific, something extra that has to be explained to a team.
The text was updated successfully, but these errors were encountered: