Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Replace grunt-rev with grunt-filerev
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Mar 9, 2015
1 parent 17bf42f commit 3d6b2cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,15 @@ module.exports = function (grunt) {
},

// Renames files for browser caching purposes
rev: {
filerev: {
dist: {
files: {
src: [
'<%%= config.dist %>/scripts/{,*/}*.js',
'<%%= config.dist %>/styles/{,*/}*.css',
'<%%= config.dist %>/images/{,*/}*.*',
'<%%= config.dist %>/styles/fonts/{,*/}*.*',
'<%%= config.dist %>/*.{ico,png}'
]
}
src: [
'<%%= config.dist %>/scripts/{,*/}*.js',
'<%%= config.dist %>/styles/{,*/}*.css',
'<%%= config.dist %>/images/{,*/}*.*',
'<%%= config.dist %>/styles/fonts/{,*/}*.*',
'<%%= config.dist %>/*.{ico,png}'
]
}
},

Expand Down Expand Up @@ -490,7 +488,7 @@ module.exports = function (grunt) {
'uglify',
'copy:dist',<% if (includeModernizr) { %>
'modernizr',<% } %>
'rev',
'filerev',
'usemin',
'htmlmin'
]);
Expand Down
2 changes: 1 addition & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"grunt-mocha": "^0.4.10",<% } %><% if (includeModernizr) { %>
"grunt-modernizr": "^0.5.2",<% } %>
"grunt-newer": "^0.7.0",
"grunt-rev": "^0.1.0",<% if (includeSass && includeLibSass) { %>
"grunt-filerev": "^2.2.0",<% if (includeSass && includeLibSass) { %>
"grunt-sass": "^0.17.0",<% } %>
"grunt-svgmin": "^0.4.0",
"grunt-usemin": "^2.3.0",
Expand Down

0 comments on commit 3d6b2cf

Please sign in to comment.