diff --git a/Gruntfile.js b/Gruntfile.js index 22c96ae..44ec3d6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -308,6 +308,24 @@ module.exports = function(grunt) { } } }, + px_to_rem: { + main: { + options: { + base: 16, + fallback: false, + fallback_existing_rem: false, + ignore: [] + }, + files: [ + { + expand: true, + flatten: true, + src: '<%= config.dist %>/<%= config.distStyles %>/<%= config.mainCss %>', + dest: '<%= config.dist %>/<%= config.distStyles %>/' + } + ] + } + }, autoprefixer: { options: { browsers: [ @@ -584,6 +602,7 @@ module.exports = function(grunt) { 'less', 'stripmq', 'autoprefixer', + 'px_to_rem', 'combine_mq', 'copy:styles', 'copy:assets', diff --git a/package.json b/package.json index 2e4c592..3eeb09b 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "grunt-jsdoc": "^0.5.7", "grunt-modernizr": "^0.6.0", "grunt-prettify": "^0.4.0", + "grunt-px-to-rem": "^0.3.2", "grunt-stripmq": "0.0.6", "grunt-zip": "^0.16.2", "jshint-stylish": "^1.0.0",