We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
存在的问题:比如,在公共(全局)样式含有对 body 的一些重置样式,那么在某个页面中也对 body 进行修改的话会出现无法覆盖公共样式的问题
body
Sorry, something went wrong.
线索: import 的默认【提升】问题和 css-modules 的导入方式。
import
css-modules
解决方案: 第一步,将公共样式从 scss 更改为 css 第二步,将该样式文件导入一个 js 中 第三步,在 webpack 配置的入口顶部优先引入该 js 文件(注意加载顺序)
scss
css
js
webpack
如下:
entry: { bundle: ['@babel/polyfill', './src/styles/index.js', './src/script/app.js'], },
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: