easywebpack icon indicating copy to clipboard operation
easywebpack copied to clipboard

css-loader配置localIdentName后html内名称与css内不符

Open williamnie opened this issue 5 years ago • 0 comments

开启了cssmodule,在webpack.config.js 中配置了cssloader,配置如下

 css: {
      localIdentName: '[path][name]__[local]'
    }

此时css在打包的时候,会按照我指定的名称打包,但是html内还是hash过的,这是需要配置其他的选项么? html内

<p class="_3gfBy7Z6EV0SgjmA1kFtBn">
css:
.app-web-page-home-home__title{}

williamnie avatar Sep 04 '19 10:09 williamnie