Skip to content

Commit cd28298

Browse files
committed
feat(build): switch to grunt-filerev
yeoman/grunt-filerev is a newer, more maintained module (than grunt-rev) that provides file revisioning funtionality in a grunt task
1 parent 02c656e commit cd28298

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

app/templates/Gruntfile.js

+8-10
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,14 @@ module.exports = function (grunt) {
282282
},
283283

284284
// Renames files for browser caching purposes
285-
rev: {
285+
filerev: {
286286
dist: {
287-
files: {
288-
src: [
289-
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js',
290-
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css',
291-
'<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
292-
'<%%= yeoman.dist %>/client/assets/fonts/*'
293-
]
294-
}
287+
src: [
288+
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js',
289+
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css',
290+
'<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
291+
'<%%= yeoman.dist %>/client/assets/fonts/*'
292+
]
295293
}
296294
},
297295

@@ -969,7 +967,7 @@ module.exports = function (grunt) {
969967
'cdnify',
970968
'cssmin',
971969
'uglify',
972-
'rev',
970+
'filerev',
973971
'usemin'
974972
]);
975973

app/templates/_package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"grunt-jscs": "~0.7.1",
5757
"grunt-newer": "~0.7.0",
5858
"grunt-ng-annotate": "^0.2.3",
59-
"grunt-rev": "~0.1.0",
59+
"grunt-filerev": "^2.3.1",
6060
"grunt-svgmin": "~0.4.0",
6161
"grunt-usemin": "~2.1.1",
6262
"grunt-env": "~0.4.1",

0 commit comments

Comments
 (0)