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

Shorten the names. #37

Open
romeovs opened this issue Aug 30, 2015 · 1 comment
Open

Shorten the names. #37

romeovs opened this issue Aug 30, 2015 · 1 comment
Milestone

Comments

@romeovs
Copy link

romeovs commented Aug 30, 2015

With big css files the length of the generated names will become very long, even tough this should not be necessary.

Would it be possible to have css-modulesify generate shorter names (as short as possible)? This would decrease the size of the resulting css and js files, reducing load times.

@joshwnj
Copy link
Member

joshwnj commented Aug 31, 2015

Hi @romeovs, it's possible to set a custom name function like https://github.com/css-modules/css-modulesify/blob/master/index.js#L13, however setting it is not particularly user-friendly at the moment. I would love to see this fixed in v1.0 and make it use a shorter name by default.

Is this the kind of thing you had in mind?

@joshwnj joshwnj added this to the 1.0 release milestone Aug 31, 2015
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

No branches or pull requests

2 participants