diff --git a/Gruntfile.js b/Gruntfile.js index 5eb93d8..ddfa42c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -40,7 +40,7 @@ module.exports = function(grunt) { compress: false, // LESS source map // To enable, set sourceMap to true and update sourceMapRootpath based on your install - sourceMap: false, + sourceMap: true, sourceMapFilename: 'assets/css/main.css.map', sourceMapRootpath: '/app/themes/roots/' } @@ -72,6 +72,20 @@ module.exports = function(grunt) { } } }, + autoprefixer: { + options: { + browsers: ['last 2 versions', 'ie 8', 'ie 9', 'android 2.3', 'android 4', 'opera 12'] + }, + dev: { + options: { + map: 'assets/css/' + }, + src: 'assets/css/main.css' + }, + build: { + src: 'assets/css/main.min.css' + } + }, modernizr: { build: { devFile: 'assets/vendor/modernizr/modernizr.js', @@ -128,8 +142,8 @@ module.exports = function(grunt) { }, clean: { dist: [ - 'assets/css/*main*.min.css', - 'assets/js/*scripts*.min.js' + 'assets/css/main.min.*.css', + 'assets/js/scripts.min.*.js' ] } }); @@ -144,16 +158,17 @@ module.exports = function(grunt) { grunt.registerTask('dev', [ 'jshint', 'less:dev', + 'autoprefixer:dev', 'concat' ]); grunt.registerTask('build', [ 'jshint', 'clean', 'less:build', + 'autoprefixer:build', 'uglify', 'modernizr', 'filerev', 'filerev_assets' ]); - }; diff --git a/package.json b/package.json index 5c3e8f4..92c0f50 100644 --- a/package.json +++ b/package.json @@ -25,14 +25,15 @@ "devDependencies": { "bower": "~1.2.8", "grunt": "~0.4.2", - "grunt-contrib-clean": "~0.5.0", - "grunt-contrib-jshint": "~0.6.4", - "grunt-contrib-concat": "~0.3.0", - "grunt-contrib-uglify": "~0.2.4", - "grunt-contrib-watch": "~0.5.3", - "grunt-contrib-less": "~0.8.1", + "grunt-autoprefixer": "~0.7.2", "grunt-filerev": "~0.2.1", "grunt-filerev-assets": "~0.3.0", + "grunt-contrib-clean": "~0.5.0", + "grunt-contrib-concat": "~0.3.0", + "grunt-contrib-jshint": "~0.6.4", + "grunt-contrib-less": "~0.8.1", + "grunt-contrib-uglify": "~0.2.4", + "grunt-contrib-watch": "~0.5.3", "grunt-modernizr": "~0.5.1", "load-grunt-tasks": "~0.3.0" }