Tuesday, December 3, 2013

Yeoman and images handling issues (on Windows 7 64b at least)

I'm trying out Yeoman these days, along with AngularJS, Bootstrap and the Yeoman Maven plugin to integrate everything in a tool I already know :-)

The bootstrapping phase works great, even on Windows assuming that you already have a batch like cygwin installed. However I started facing some issues as soon as I added some images in the project.

After adding some images, I got the following error during grunt build :

      throw err;
    Error: spawn ENOENT
        at errnoException (child_process.js:980:11)
        at Process.ChildProcess._handle.onexit (child_process.js:771:34) Use --force to continue.

As it turns out, Grunt does not like jpg files. That is, the imagemin module does not. So, converting those jpg files to png did the trick.

No comments:

Post a Comment