[英]How should I extract @angular/material css file in Angular v13?
@angular/material
.@angular/material
。 I also want to use tailwindcss
.tailwindcss
。@angular/material
css is a style tag in head.@angular/material
css 是 head 中的样式标签。 so tailwindcss
is not working.tailwindcss
不工作。 To solve this issue, be sure to activate important
flag on tailwindcss config, in order to automatically mark all css class with !important
clause .要解决此问题,请务必在 tailwindcss 配置中激活
important
标志,以便使用!important
子句自动标记所有 css 类。
So every predefined classes of TailwindCSS will override @angular/material
styles.所以 TailwindCSS 的每个预定义类都会覆盖
@angular/material
样式。
tailwind.config.js: tailwind.config.js:
module.exports = {
...
important: true,
...
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.