在 Angular 6 中隐藏来自控制台的 IE 警告
Hide IE warnings from console in Angular 6
我在为我的 angular 应用程序提供服务时不断收到这些警告:
例如:
./src/app/core/containers/navbar/navbar.component.sass
(Emitted value instead of an instance of Error) autoprefixer: ...src\app\core\containers\navbar\navbar.component.sass:11:4: grid-auto-columns is not supported by IE
不幸的是,我对 IE 支持不感兴趣。 是否可以禁用此类警告?
您可以在 CSS 文件中通过在行前加上以下内容来禁用单行警告:
/* autoprefixer: off */
例如,IE不支持CSS设置grid-auto-rows
。要禁用警告,请像这样应用它:
.some-div {
display: grid;
/* autoprefixer: off */
grid-auto-rows: auto auto;
}
我在为我的 angular 应用程序提供服务时不断收到这些警告:
./src/app/core/containers/navbar/navbar.component.sass
(Emitted value instead of an instance of Error) autoprefixer: ...src\app\core\containers\navbar\navbar.component.sass:11:4: grid-auto-columns is not supported by IE
不幸的是,我对 IE 支持不感兴趣。 是否可以禁用此类警告?
您可以在 CSS 文件中通过在行前加上以下内容来禁用单行警告:
/* autoprefixer: off */
例如,IE不支持CSS设置grid-auto-rows
。要禁用警告,请像这样应用它:
.some-div {
display: grid;
/* autoprefixer: off */
grid-auto-rows: auto auto;
}