Reputation: 51
I tried to prefix my scss files, I found the autoprefixer but it only works with CSS, is there a method to make it work with scss files.
Autoprefixer commands:
npm install postcss-cli autoprefixer
npx postcss *.css --use autoprefixer -d build/
Thanks
Upvotes: 0
Views: 518
Reputation: 224
Autoprefixer can be easily integrated with Sass and Stylus, since it runs after CSS is already compiled.
Reference: https://css-tricks.com/autoprefixer/
This Stack Overflow answer explains how to use Autofixer in Angular and with scss files.
Update: This is the command to run postcss/autoprefixer using scss.
postcss --parser postcss-scss -u autoprefixer --autoprefixer.browsers \"last 2 versions\" -r src/**/*.scss
Upvotes: 1