Implement autoprefixer via grunt-postcss

This commit is contained in:
leho 2016-02-09 01:11:54 +02:00 committed by sbertal
parent 7c63e1185b
commit 9f52d653cb
2 changed files with 17 additions and 0 deletions

View File

@ -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 File

@ -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"
},