Skip to content

update to allow passing a generateScopedName func directly #46

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 3 commits into from
Sep 21, 2015

Conversation

joshwnj
Copy link
Member

@joshwnj joshwnj commented Sep 19, 2015

Update to add a new generateScopedName option.

By default it uses generateLongName, which is similar to the current behaviour. But if NODE_ENV=production it will use a shorter name (file hash + line number).

This also means a cleaner API, setting generateScopedName directly on css-modulesify rather than needing to reach in and set it as an option of the postcss plugin.

@ryngonzalez
Copy link

Looks good 👍 Thanks for the work on this!

@joshgillies
Copy link
Member

Looks really good, thanks @joshwnj !! Merging 👍

joshgillies added a commit that referenced this pull request Sep 21, 2015
update to allow passing a generateScopedName func directly
@joshgillies joshgillies merged commit d9517fc into master Sep 21, 2015
@joshwnj joshwnj deleted the long-and-short-scoped-names branch September 21, 2015 01:12
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