1
1
mirror of https://github.com/primer/css.git synced 2024-09-21 05:39:15 +03:00

move from grunt-autoprefixer to grunt-post-css

This commit is contained in:
Mark Otto 2015-06-12 11:51:34 -07:00
parent f266ae3bd9
commit 3db16e918c
2 changed files with 10 additions and 8 deletions

View File

@ -19,9 +19,11 @@ module.exports = function(grunt) {
},
// Handle vendor prefixing
autoprefixer: {
postcss: {
options: {
browsers: ['last 2 versions', 'ie 8', 'ie 9']
processors: [
require('autoprefixer-core')({ browsers: 'last 2 versions' }),
]
},
dist: {
src: 'css/*.css'
@ -64,7 +66,7 @@ module.exports = function(grunt) {
watch: {
sass: {
files: ['scss/**/*.scss', 'docs/docs.scss'],
tasks: ['sass', 'autoprefixer', 'parker']
tasks: ['sass', 'postcss', 'parker']
}
},
@ -93,7 +95,7 @@ module.exports = function(grunt) {
});
// Load dependencies
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-build-control');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jekyll');
@ -101,8 +103,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass');
// Generate and format the CSS
grunt.registerTask('default', ['sass', 'jekyll', 'autoprefixer', 'parker']);
grunt.registerTask('default', ['sass', 'jekyll', 'postcss', 'parker']);
// Publish to GitHub
grunt.registerTask('publish', ['jekyll', 'autoprefixer:docs', 'buildcontrol:pages']);
grunt.registerTask('publish', ['jekyll', 'postcss:docs', 'buildcontrol:pages']);
};

View File

@ -10,11 +10,11 @@
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-autoprefixer": "~2.2.0",
"grunt-build-control": "~0.2.0",
"grunt-jekyll": "~0.4.2",
"grunt-parker": "~0.1.0",
"grunt-sass": "~0.18.0",
"grunt-contrib-watch": "~0.6.1"
"grunt-contrib-watch": "~0.6.1",
"grunt-postcss": "~0.5.1"
}
}