admin管理员组文章数量:1333167
It seems that the Bootstrap team has switched from "Node.js" to "Dart Sass" for its compilation. But I get a lot of deprecation warnings using Dart Sass.
When compiling the Bootstrap (.scss) source files using from Dart Sass there are many deprecation warnings (import, color,...).
How do I fix this without changing the source files? The --quiet-deps flag also does not silence the warnings (there is a specific one for @import warnings: --silence-deprecation=import) like color, etc...
It seems that the Bootstrap team has switched from "Node.js" to "Dart Sass" for its compilation. But I get a lot of deprecation warnings using Dart Sass.
When compiling the Bootstrap (.scss) source files using from Dart Sass there are many deprecation warnings (import, color,...).
How do I fix this without changing the source files? The --quiet-deps flag also does not silence the warnings (there is a specific one for @import warnings: --silence-deprecation=import) like color, etc...
Share Improve this question asked Nov 20, 2024 at 15:34 JohanVCJohanVC 411 silver badge2 bronze badges1 Answer
Reset to default 0The warning id now included into the message:
Deprecation Warning [color-functions]: green() is deprecated. Suggestion:
so just add every warning as additional command parameter ( --silence-deprecation=color-functions
).
this works well
For bootstrap customization those specific should be used:
sass --source-map --silence-deprecation=color-functions --silence-deprecation=import --silence-deprecation=global-builtin --silence-deprecation=mixed-decls src/customBootstrap.scss wwwroot/css/customBootstrap.css
here Bootstrap.scss was imported in the customBootstrap.scss using @import
P.S. sass-dart team wrote that --quiet-deps
should not work by design if there are no sass
"importers" involved. Just adding --load-path
is not enough. As I understand this means that you should switch from compiling scss
from command prompt to compiling scss
by call sasspile
API function from sass
package e.g. in gulp
task.
本文标签: Compiling Bootstrap v533 with Dart Sass results in deprecation warningsStack Overflow
版权声明:本文标题:Compiling Bootstrap v5.3.3 with Dart Sass results in deprecation warnings - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742348527a2458016.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论