Skip to content

Commit 7ae43ae

Browse files
committed
fix(build): exclued bower_components from the grunt rev and usemin blocks
closes angular-fullstack#522
1 parent 1f47403 commit 7ae43ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: app/templates/Gruntfile.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ module.exports = function (grunt) {
286286
dist: {
287287
files: {
288288
src: [
289-
'<%%= yeoman.dist %>/client/{,*/}*.js',
290-
'<%%= yeoman.dist %>/client/{,*/}*.css',
289+
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js',
290+
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css',
291291
'<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
292292
'<%%= yeoman.dist %>/client/assets/fonts/*'
293293
]
@@ -307,9 +307,9 @@ module.exports = function (grunt) {
307307

308308
// Performs rewrites based on rev and the useminPrepare configuration
309309
usemin: {
310-
html: ['<%%= yeoman.dist %>/client/{,*/}*.html'],
311-
css: ['<%%= yeoman.dist %>/client/{,*/}*.css'],
312-
js: ['<%%= yeoman.dist %>/client/{,*/}*.js'],
310+
html: ['<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.html'],
311+
css: ['<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css'],
312+
js: ['<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js'],
313313
options: {
314314
assetsDirs: [
315315
'<%%= yeoman.dist %>/client',

0 commit comments

Comments
 (0)