Skip to content

Commit

Permalink
Update to postcss from autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Long committed Apr 18, 2016
1 parent b99273b commit 52d5823
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: {
Expand Down Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 52d5823

Please sign in to comment.