grunt-filerev
grunt-filerev copied to clipboard
grunt.filerev.summary is undefined.
Hi ! Can someone help me ?
my task:
options: {
algorithm: 'md5',
length: 8
},
js: {
src: ['<%=config.app%>/**/*.js'],
dest: 'tmp'
}
result:
Running "filerev:js" (filerev) task
Revved 45 files
Done, without errors.
But when the task done, I get the " grunt.filerev.summary " undefined , where is it ? Or how can I get it ?
Where are you trying to get it at?
Where are you trying to get it at?
ping @xiao17?
Closing due to inactivity.
I'm having this issue as well when using it in combination with https://github.com/yeoman/grunt-usemin and https://github.com/shootaroo/jit-grunt (not sure if the later is relevant).
Any ideas what could be wrong?
My config:
filerev.js
module.exports = {
dist: {
options: {
summary: 'filerev',
},
src: [
'<%= paths.builds.css %>/**/*.css',
'<%= paths.builds.js %>/**/*.js'
]
}
}
useminPrepare.js
module.exports = {
html: '<%= files.views %>',
options: {
flow: {}
}
}
usemin.js
module.exports = {
html: '<%= files.views %>',
options: {
revmap: '<%= grunt.filerev.summary %>',
assetsDirs: [
'<%= paths.builds.css %>',
'<%= paths.builds.js %>'
]
}
}
tasks.js
grunt.registerTask('build', '', [
'useminPrepare',
'cssmin',
'uglify',
'filerev',
'usemin',
])
Any idea about my issue @arthurvr ?
I'm having same issue Warning: An error occurred while processing a template (Cannot read property 'summary' of undefined). Use --force to continue.
Any idea?