diff --git a/app/templates/Gruntfile.js b/app/templates/Gruntfile.js index 616fe62de..b75cb07f8 100644 --- a/app/templates/Gruntfile.js +++ b/app/templates/Gruntfile.js @@ -286,8 +286,8 @@ module.exports = function (grunt) { dist: { files: { src: [ - '<%%= yeoman.dist %>/client/{,*/}*.js', - '<%%= yeoman.dist %>/client/{,*/}*.css', + '<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js', + '<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css', '<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', '<%%= yeoman.dist %>/client/assets/fonts/*' ] @@ -307,9 +307,9 @@ module.exports = function (grunt) { // Performs rewrites based on rev and the useminPrepare configuration usemin: { - html: ['<%%= yeoman.dist %>/client/{,*/}*.html'], - css: ['<%%= yeoman.dist %>/client/{,*/}*.css'], - js: ['<%%= yeoman.dist %>/client/{,*/}*.js'], + html: ['<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.html'], + css: ['<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css'], + js: ['<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js'], options: { assetsDirs: [ '<%%= yeoman.dist %>/client',