Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide IE warnings from console in Angular 6

I am constantly getting these warnings when serving my angular app:

enter image description here e.g.:

./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

Unfortunately, I am not interested in IE support. Is it possible to disable this type of warnings?

like image 864
Flo Avatar asked Jul 26 '18 17:07

Flo


1 Answers

You can disable warnings for single lines in your CSS file by prepending the line with:

/* autoprefixer: off */

For example, IE does not support the CSS setting grid-auto-rows. To disable the warning, apply it like this:

.some-div {
    display: grid;
    /* autoprefixer: off */
    grid-auto-rows: auto auto;
}

Source: https://github.com/angular/angular-cli/issues/5964

like image 92
Philipp Ludwig Avatar answered Sep 27 '22 21:09

Philipp Ludwig