Skip to content

Commit

Permalink
feat: use more descriptive classNames for CSS modules
Browse files Browse the repository at this point in the history
close #813
  • Loading branch information
yyx990803 committed Feb 12, 2018
1 parent 8e0661e commit fd13106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@vue/cli-service/lib/config/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ module.exports = (api, options) => {
// ensure user injected vueLoader options take higher priority
options.loaders = Object.assign(resolver.vue(), options.loaders)
options.cssSourceMap = !!userOptions.cssSourceMap
options.cssModules = Object.assign({
localIdentName: '[name]_[local]__[hash:base64:5]'
}, options.cssModules)
return options
})

Expand Down

0 comments on commit fd13106

Please sign in to comment.