Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

grunt.filerev.summary is undefined. #84

Open
HelloYie opened this issue Apr 16, 2015 · 7 comments
Open

grunt.filerev.summary is undefined. #84

HelloYie opened this issue Apr 16, 2015 · 7 comments

Comments

@HelloYie
Copy link

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 ?

@eddiemonge
Copy link
Member

Where are you trying to get it at?

@arthurvr
Copy link
Member

arthurvr commented May 5, 2015

Where are you trying to get it at?

ping @xiao17?

@arthurvr
Copy link
Member

Closing due to inactivity.

@bramdevries
Copy link

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

@arthurvr arthurvr reopened this Jun 16, 2015
@bramdevries
Copy link

Any idea about my issue @arthurvr ?

@hawm3d
Copy link

hawm3d commented Jan 27, 2016

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

@hawm3d
Copy link

hawm3d commented Jan 28, 2016

Any idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants