vue项目sass 颜色运算 编译时老有警告

The operation `#e6a23c minus #111` is deprecated and will be an error in future versions.
Consider using Sass's color functions instead.
http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions

DEPRECATION WARNING on line 990 of stdin:
64% building 843/930 modules 87 active F:\2018\...\node_modules\core-js\modules\_array-species-constructor.js
Consider using Sass's color functions instead.
http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions

最近升级了下,webpack版本到4.4,node-sass 4.13

"sass": "^1.5.1",
"sass-loader": "^7.0.3",
"sass-resources-loader": "^1.3.3",
"scss": "^0.2.4",
"scss-loader": "0.0.1"

告警提示颜色运算要废弃了,我去看了sass文档,没有说明啊,是便宜版本问题吗

阅读 3.7k
1 个回答

Consider using Sass's color functions instead. 这句很关键,去下面的链接点开看看咯

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题