diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index 24ddf260f..c36416ae2 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -237,7 +237,16 @@ module.exports = function (grunt) { useminPrepare: { html: '<%%= yeoman.app %>/index.html', options: { - dest: '<%%= yeoman.dist %>' + dest: '<%%= yeoman.dist %>', + flow: { + html: { + steps: { + js: ['concat', 'uglifyjs'], + css: ['cssmin'] + }, + post: {} + } + } } }, @@ -251,6 +260,11 @@ module.exports = function (grunt) { }, // The following *-min tasks produce minified files in the dist folder + cssmin: { + options: { + root: '<%%= yeoman.app %>' + } + }, imagemin: { dist: { files: [{