Skip to content

Commit

Permalink
Merge pull request #1066 from kingcody/fix/grunt-rev
Browse files Browse the repository at this point in the history
fix(build): exclude `bower_components` from the rev and usemin blocks
  • Loading branch information
Awk34 committed Jul 16, 2015
2 parents 700028c + 7ae43ae commit 02c656e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'
]
Expand All @@ -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',
Expand Down

0 comments on commit 02c656e

Please sign in to comment.