Permalink
Browse files

Adds autoprefixer

  • Loading branch information...
1 parent 0de472c commit bb6137f4ceb38ab3a18e13fcdf6737faca13fa14 @craveytrain committed Oct 7, 2013
Showing with 14 additions and 3 deletions.
  1. +12 −2 Gruntfile.js
  2. +2 −1 package.json
View
@@ -41,6 +41,15 @@ grunt.initConfig({
}
},
+ autoprefixer: {
+ options: {},
+ css: {
+ expand: true,
+ src: 'build/css/*.css',
+ dest: ''
+ }
+ },
+
uglify: {
dist: {
options: {
@@ -65,7 +74,7 @@ grunt.initConfig({
watch: {
css: {
files: 'source/stylesheets/**/*.styl',
- tasks: ['stylus'],
+ tasks: ['stylus', 'autoprefixer'],
options: {
interrupt: true
}
@@ -144,9 +153,10 @@ grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-stylus');
+grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadTasks('tasks');
-grunt.registerTask('build', ['clean', 'jshint', 'copy', 'render', 'stylus', 'uglify']);
+grunt.registerTask('build', ['clean', 'jshint', 'copy', 'render', 'stylus', 'autoprefixer', 'uglify']);
grunt.registerTask('preview', ['build', 'connect', 'watch']);
// grunt.registerTask('package', ['clean', 'jshint', 'copy', 'render', 'stylus', 'uglify']);
View
@@ -33,7 +33,8 @@
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-contrib-stylus": "~0.8.0",
"yaml-front-matter": "~2.1.0",
- "supermarked": "~1.1.0"
+ "supermarked": "~1.1.0",
+ "grunt-autoprefixer": "~0.3.0"
},
"devDependencies": {
"highlight": "~0.2.3"

0 comments on commit bb6137f

Please sign in to comment.