I want to use Autoprefixer https://www.npmjs.com/package/autoprefixer as a File Watcher. How to add it?
I don't use npm package, only file watcher css compile in PhpStorm.
There is no built-in support for autoprefixer, and it can hardly be expected in near future, see WEB-37.
You can install the autoprefixer (npm install postcss-cli autoprefixer -g
) and set it up as a file watcher, for example:
See postcss -h
for help on cli options
You can also try using sass-prefix-mixins in your code