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

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

Open
williamnie opened this issue Sep 4, 2019 · 0 comments
Open

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

williamnie opened this issue Sep 4, 2019 · 0 comments

Comments

@williamnie
Copy link

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

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

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

<p class="_3gfBy7Z6EV0SgjmA1kFtBn">
css:
.app-web-page-home-home__title{}
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

1 participant