项目场景:
提示:这里简述项目相关背景:
例如:sass 2.0.0版本之后全局赋值将无法声明新变量。
element-ui自定义皮肤时发生的报错信息,虽然能运行,但会发出多个警告。
问题描述
cssDeprecation Warning: As of Dart Sass 2.0.0, !global assignments won’t be able to declare new variables.
Recommendation: add $E: null
at the stylesheet root.
$E: $element !global;
原因分析:
提示不支持新变量声明。
解决方案:
在根目录下声明变量 $E:null;
完美解决