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

camlCase dashes for css modules exports #24

Merged
merged 2 commits into from
May 23, 2017
Merged

Conversation

plrthink
Copy link

This PR is trying to fix an issue where exporting a selector which including dashes like .foo-bar when using css modules. Since now we are generating export const foo-bar = "....." and the dashes are illegal for javascript variables, the whole build phrase would fail.

I'm just implementing camelCase: 'dashes' option in webpack-style-loader. It's fairly enough for my use cases.

@egoist
Copy link
Owner

egoist commented May 23, 2017

LGTM, we should update readme to tell users that dashes are always camelCased

@plrthink
Copy link
Author

yeah, sure. I'm going to update that.

@plrthink
Copy link
Author

just updated the doc

@lmihaidaniel
Copy link
Collaborator

LGTM

@egoist egoist merged commit 56c6cdb into egoist:master May 23, 2017
@egoist
Copy link
Owner

egoist commented May 23, 2017

Released v0.5.1 for this fix 🎉

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.

3 participants