Skip to content

Add option of adding camelize keys, like css-loader's camelCase #72

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

Merged
merged 2 commits into from
May 29, 2016

Conversation

tatjsn
Copy link
Contributor

@tatjsn tatjsn commented May 21, 2016

Hi,

Webpack's css-loader has a useful option to provide camelize key to the json output (parameter camelCase). Users of this option need this functionality in server-side require hook also to create isomorphic modules.

Now I'm working around with this issue via additional postcss plugin adding camelize keys to :export rule, but it would be nice to be able to do this here without additional dependencies.

Does this patch make sense to you?

Thanks.

@mightyaleksey
Copy link
Member

Hi,

I did not about that functionality. Actually I used camelCased classnames :) Anyways, thank you for your interest, I think I can add it for you.

@mightyaleksey mightyaleksey merged commit 900e5e3 into css-modules:master May 29, 2016
@mightyaleksey
Copy link
Member

published with 4.0.1. Thanks

@tatjsn
Copy link
Contributor Author

tatjsn commented May 30, 2016

Thanks a lot! Hope this helps others also :)

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.

2 participants