-
Notifications
You must be signed in to change notification settings - Fork 40
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
Improvement to autocomplete for camelization of classnames #3
Comments
Yes, I am so glad to see your PR. |
I've got the same requirement: Also, thanks for the plugin. |
Hi, @kumarharsh and @clinyong , we have different use case in our project. To our developers, CSSModule's Btw, in bundled JS, CSSModule's Is it possible to support such use case in the plugin as well? Looking forward to your feedback. Thanks. |
@evisong If your devs use the kebab-case classes in JS, then you don't need to set camelCase property at all. |
@kumarharsh is right. And I prefer camelCase classes in JS.
The plugin can not do this. |
@evisong The retention of the original key and the camelized keys is done by the css-loader plugin. You'll have to ask them for this. This is just an editor plugin. |
@kumarharsh, thanks for your timely response, sorry I didn't notice the email notification. Maybe a picture would better explain my proposed feature: Please look into the yellow text, when selecting Thanks. |
@kumarharsh You're right. Will do, thanks. |
@evisong it's already done actually 😉 webpack-contrib/css-loader#440 (comment) |
You're super! Thanks. |
Just created a similar ticket to css-modules-require-hook: css-modules/css-modules-require-hook#89, as we're using babel-plugin-css-modules-transform instead of css-loader. |
Hi, it's really good to see the autocomplete coming to
import
ed css-modules. I'm using a flag in my css-loader namedcamelCase
which lets me write camelCase class names in my javascript, but still let me writekebab-case
classes in my css file. Can this plugin support that usecase? I can submit a PR if you'd like to include it in the plugin.The text was updated successfully, but these errors were encountered: