From 7ae43ae8a0af48a771348b43d6f8410656d8376b Mon Sep 17 00:00:00 2001 From: kingcody Date: Wed, 15 Jul 2015 21:18:22 -0400 Subject: [PATCH] fix(build): exclued `bower_components` from the grunt rev and usemin blocks closes #522 --- app/templates/Gruntfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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',