mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
Implement autoprefixer via grunt-postcss
This commit is contained in:
parent
7c63e1185b
commit
9f52d653cb
15
Gruntfile.js
15
Gruntfile.js
@ -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'
|
||||
]);
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user