Reputation: 891
As long as grunt-autoprefixer is deprecated I want to migrate to grunt-postcss.
I m quite new in the grunt
world (and dependencies) I could not find what I needed in documentation to do the migration.
To process I need three steps:
I suppose I've to run npm uninstall grunt-autoprefixer --save-dev
first
Then a npm install grunt-postcss --save-dev
but not sure at all if I've to do a npm install grunt-postcss pixrem autoprefixer-core cssnano
Then I should modify the Gruntfile.js
. So actually I've this section:
autoprefixer: {
options: {
browsers: ['last 1 version']
},
dist: {
files: [{
expand: true,
cwd: '.tmp/styles/',
src: '{,*/}*.css',
dest: '.tmp/styles/'
}]
}
},
Upvotes: 1
Views: 743
Reputation: 96
Wrote a migration guide for you and anyone who will migrate in the future, please refer:
https://github.com/nDmitry/grunt-postcss#how-to-migrate-from-grunt-autoprefixer
Upvotes: 1