Permalink
Browse files

Implement autoprefixer via grunt-postcss

  • Loading branch information...
1 parent 7c63e11 commit 9f52d653cb168cc49b5bb60ed5aca7f073ea8e76 @lkraav lkraav committed with redonkulus Feb 8, 2016
Showing with 17 additions and 0 deletions.
  1. +15 −0 Gruntfile.js
  2. +2 −0 package.json
View
@@ -104,6 +104,19 @@ grunt.initConfig({
}
},
+ // -- PostCSS Config --------------------------------------------------------
+
+ postcss: {
+ options: {
+ processors: [
+ require('autoprefixer')({browsers: ['last 2 versions', 'ie >= 8', 'iOS >= 6', 'Android >= 4']})
+ ]
+ },
+ dist: {
+ src: 'build/*.css'
+ }
+ },
+
// -- CSSLint Config -------------------------------------------------------
csslint: {
@@ -258,6 +271,7 @@ grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-css-selectors');
+grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-pure-grids');
grunt.loadNpmTasks('grunt-stripmq');
@@ -275,6 +289,7 @@ grunt.registerTask('build', [
'concat:build',
'clean:build_res',
'css_selectors:base',
+ 'postcss',
'cssmin',
'license'
]);
View
@@ -11,6 +11,7 @@
},
"files": "build/",
"devDependencies": {
+ "autoprefixer": "^6.3.1",
"bower": "^1.3.7",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
@@ -22,6 +23,7 @@
"grunt-contrib-cssmin": "^1.0.2",
"grunt-contrib-watch": "^1.0.0",
"grunt-css-selectors": "^1.1.0",
+ "grunt-postcss": "^0.7.1",
"grunt-pure-grids": "^1.0.0",
"grunt-stripmq": "0.0.6"
},

0 comments on commit 9f52d65

Please sign in to comment.