grunt-filerev icon indicating copy to clipboard operation
grunt-filerev copied to clipboard

grunt.filerev.summary is undefined.

Open HelloYie opened this issue 10 years ago • 7 comments
trafficstars

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 ?

HelloYie avatar Apr 16 '15 07:04 HelloYie

Where are you trying to get it at?

eddiemonge avatar Apr 24 '15 18:04 eddiemonge

Where are you trying to get it at?

ping @xiao17?

arthurvr avatar May 05 '15 05:05 arthurvr

Closing due to inactivity.

arthurvr avatar May 15 '15 20:05 arthurvr

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',
    ])

bramdevries avatar Jun 16 '15 18:06 bramdevries

Any idea about my issue @arthurvr ?

bramdevries avatar Jun 19 '15 06:06 bramdevries

I'm having same issue Warning: An error occurred while processing a template (Cannot read property 'summary' of undefined). Use --force to continue.

hawm3d avatar Jan 27 '16 20:01 hawm3d

Any idea?

hawm3d avatar Jan 28 '16 08:01 hawm3d