[英]!default css font-family specificity tag
I am using local css-modules in react/webpack to build some local fonts in a dev environment. 我在react / webpack中使用本地css-modules在开发环境中构建一些本地字体。
I see this !default tag added to my computed styles in all browsers which invalidates all css font-family rules. 我在所有浏览器中看到此!default标记已添加到我的计算样式中,这使所有css字体系列规则无效。
Files received by the browser under sources in Chrome do not have this tag. 浏览器在Chrome中的源下收到的文件没有此标签。
How can I remove this !default string? 如何删除此!default字符串? Or further debug in chrome. 或在chrome中进一步调试。
I found the answer had to do with a webpack version update and css-module. 我发现答案与webpack版本更新和CSS模块有关。 Thanks for the comment @Mr-Lister I did learn a thing. 感谢@ Mr-Lister的评论,我确实学到了东西。 Hope someone else who comes across an issue with the webpack dependency web and can know just to pin the version so there are no minor semver upgrades. 希望其他遇到webpack依赖项网络问题并知道仅锁定版本的人,以便没有次要的semver升级。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.