webpack-contrib / postcss-loader

PostCSS loader for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated

liuchuancong opened this issue · comments

"postcss-loader": "^7.0.0",

How can i fix this problem?

console warning

autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated

Please follow the warning mesage and change color-adjust to print-color-adjust in your source code

@alexander-akait
The warning message states explicitly that this warning is raised by autoprefixer which is a dependency of postcss-loader.
I am facing the same issue, and I have no direct use of color-adjust in my project, so the proposed solution is useless.
FYI I am using postcss-loader as a dependency for @angular-devkit/build-angular

@ktsangop autoprefixer is not dependecy of postcss-loader, angular CLI uses this plugin, if you got this warning it means you have color-adjust in your source code (you have code in your dependecies check it, also other plugins before autoprefixer can generate code and late postcss throw a warning on code, double check it)

@alexander-akait sorry that was my bad I misread the yarn why output.
The package that depends on autoprefixer is postcss-preset-env which does have the deprecated color-adjust.