I have been trying to solve this problem for more than half a day.
I have an angularjs project that I use grunt to build.
Running my grunt command gives me the following:
`` `Performing the parallel: dist task (parallel)
Running "svgmin:dist" (svgmin) task Total saved: 0 B Done, without errors. Execution Time (2014-09-23 21:53:55 UTC) loading tasks 7ms ββββββ 11% svgmin:dist 58ms ββββββββββββββββββββββββββββββββββββββββββ 89% Total 65ms Warning: Running "imagemin:dist" (imagemin) task Fatal error: Object
`` ``
Here is my imagemin task in my GruntFile.js:
imagemin: { dist: { files: [ { expand: true, cwd: '<%= yeoman.app %>/images', src: '{,*/}*.{png,jpg,jpeg,gif}', dest: '<%= yeoman.dist %>/images' } ] } }
I canβt find anything on the networks that help me. I found this open problem, but so far no one has answered: https://github.com/gruntjs/grunt-contrib-imagemin/issues/254
Thanks.
source share