feat(grunt): add autoprefix with postcss

closes #4250
This commit is contained in:
bergquist
2016-03-07 17:49:47 +01:00
parent a6c6b00d7e
commit b912edbbef
6 changed files with 36 additions and 46 deletions
+21
View File
@@ -0,0 +1,21 @@
module.exports = function(config) {
return {
options: {
map: true, // inline sourcemaps
// or
map: {
inline: false, // save all sourcemaps as separate files...
annotation: 'dist/css/maps/' // ...to the specified directory
},
processors: [
require('autoprefixer')({browsers: 'last 2 versions'}), // add vendor prefixes
]
},
dist: {
src: '<%= genDir %>/css/*.css'
}
}
};