asciidisco / grunt-imagine

Grunt tasks for optimizing & inlining images
MIT License
153 stars 21 forks source link

error trying to use imagine #26

Closed leabdalla closed 11 years ago

leabdalla commented 11 years ago

when I try to run grunt with imagine, I get this error

Loading "gifmin.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "helper.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "inlineImg.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "jpgmin.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "pngmin.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "pngnq.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "sprites.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined

any idea?

collin-garvey commented 11 years ago

+1

asciidisco commented 11 years ago

Hey,

yes, the plugin never made the transition to Grunt 0.4.0, what you see is the result of the API fro grunt.util to grunt.utils. Changing this might not solve all the problems, I believe that it would need some tweaks to work. Unfortunately I recently changed jobs & now I have less to no time to take care of this little task anymore. If anyone is interested in helping out, please ping me, I would love to add you as a maintainer & give you the rights to publish new versions to npm.

asciidisco commented 11 years ago

Fixed with https://github.com/asciidisco/grunt-imagine/pull/29