Permalink
Browse files

Update to postcss from autoprefixer

  • Loading branch information...
jasonlong committed Apr 18, 2016
1 parent b99273b commit 52d5823d0da9545848d540185e7b04e224fe7368
Showing with 7 additions and 5 deletions.
  1. +6 −4 Gruntfile.js
  2. +1 −1 package.json
View
@@ -8,7 +8,7 @@ module.exports = function(grunt) {
},
sass: {
files: 'scss/*.scss',
- tasks: ['sass', 'autoprefixer', 'bsReload:css']
+ tasks: ['sass', 'postcss', 'bsReload:css']
},
html: {
files: '*.html',
@@ -28,9 +28,11 @@ module.exports = function(grunt) {
}
},
- autoprefixer: {
+ postcss: {
options: {
- browsers: ['last 2 versions', 'ie 8', 'ie 9']
+ processors: [
+ require('autoprefixer')({browsers: ['last 2 versions', 'ie 8', 'ie 9']})
+ ]
},
dist: {
files: {
@@ -60,7 +62,7 @@ module.exports = function(grunt) {
// Load dependencies
grunt.loadNpmTasks('grunt-browser-sync');
- grunt.loadNpmTasks('grunt-autoprefixer');
+ grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sass');
View
@@ -7,7 +7,7 @@
"devDependencies": {
"grunt-browser-sync": "~2.1.1",
"grunt": "~1.0.1",
- "grunt-autoprefixer": "~3.0.4",
+ "grunt-postcss": "~0.8.0",
"grunt-sass": "~1.1.0",
"grunt-contrib-watch": "~1.0.0"
}

0 comments on commit 52d5823

Please sign in to comment.