Angular 6x CLI:如何在开发控制台中禁止SCSS编译警告

问题描述 投票:1回答:1

当我编译我的Angular项目时,我收到了autoprefixer的警告:

[WDS] Warnings while compiling.

./src/app/administration/user/user.component.scss
(Emitted value instead of an instance of Error) autoprefixer:
auto-rows is not supported by IE

Angular的Github上有几个问题,但它们与Bazel等其他软件包警告有关。我可以永久禁止特定或所有警告吗?

angular command-line-interface
1个回答
1
投票

browserslist文件夹中的src文件更新为此值

last 1 version
> 5%
not dead
not ie > 1
not ie_mob > 1

last 1 version:每个浏览器的最新版本。

>5%:全球使用统计选择的浏览器版本。

not ie , not ie_mob > 1:从目标浏览器中排除所有IE和IE Mobile。

browserslist

© www.soinside.com 2019 - 2024. All rights reserved.