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

More meaningful default localIdentName for CSS modules #813

Closed
chrisvfritz opened this issue Feb 9, 2018 · 0 comments
Closed

More meaningful default localIdentName for CSS modules #813

chrisvfritz opened this issue Feb 9, 2018 · 0 comments

Comments

@chrisvfritz
Copy link
Contributor

What problem does this feature solve?

Currently, the generated classes from CSS modules only include the hash by default, which makes identifying that class at a glance quite difficult. I think most people would probably prefer generated class names that look more like NavBar__container__dsRsJ_0, which current requires this option in vue.config.js:

vueLoader: {
  cssModules: {
    localIdentName: '[name]__[local]__[hash:base64:5]'
  }
}

What does the proposed API look like?

What are thoughts on the localIdentName above being the default?

@chrisvfritz chrisvfritz changed the title Use more unique default localIdentName for CSS modules Use more meaningful default localIdentName for CSS modules Feb 9, 2018
@chrisvfritz chrisvfritz changed the title Use more meaningful default localIdentName for CSS modules More meaningful default localIdentName for CSS modules Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant