Skip to content

More meaningful default localIdentName for CSS modules  #813

Closed
@chrisvfritz

Description

@chrisvfritz

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions