Grunt imagemin throws the following error when I try to run it:
Running "imagemin:dynamic" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
Here's my package.json file:
{
"name": "project1",
"version": "0.1.0",
…
I am trying to optimize images with grunt's imagemin module.
My directory structure looks in the following way:
publicImg
main
upload
folder1
...
folderN
Inside of each of the folders 1..N there are files. All of them are .jpg
What I want to…
I keep on getting when running grunt build even with a clean Yeoman angular build: yo angular whatever.
Warning: Running "imagemin:dist" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
I am trying to compress images with grunt-contrib-imagemin ~0.9.4 in a node.js application. My config is:
imagemin: {
dynamic: {
files: [{
expand: true,
cwd: 'server/static/img/',
…
I'm getting the above error when I run the grunt dist, It worked perfectly fine with my other machine.
Please find my gruntfile.
$ grunt imagemin.
Running "imagemin:png" (imagemin) task
Minified 132 images (saved 134.02 kB)
Running "imagemin:gif"…
I've been attempting to solve this for over half the day now.
I have an angularjs project that I use grunt to build.
Running my grunt command give me the following:
```
Running "concurrent:dist" (concurrent) task
Running "svgmin:dist" (svgmin)…
I'm using Grunt Imagemin to optimize a folder of images. However everytime I run that command, it runs imagemin on ALL of the images. Is there a way to only run grunt imagemin when it detects new changes?
I am trying to lossless optimize JPEG / PNG images with imagemin, but I have a problem when using extensions, they "deoptimize", meaning the result image is bigger than the original. How can I prevent this?
This is my…
I have more than 100 images in my images/ folder.
Here is my imagemin - Grunt Config
// The following *-min tasks produce minified files in the dist folder
imagemin: {
dist: {
files: [{
expand: true,
cwd: '<%= config.app…
I'm getting a weird warning when trying to use imagemin and nothing happens.
grunt imagemin:primary
Warning: Cannot call method 'replace' of undefined Used --force, continuing.
Done, but with warnings.
My task that gives me the error is as…
When i run a grunt job, the build is failed due to the below error
+ grunt imagemin --stack
[4mRunning "imagemin:dist" (imagemin) task[24m
[31mFatal error: write EPIPE[39m
Error: write EPIPE
at Object.exports._errnoException (util.js:856:11)
…
I'm trying to set that grunt-imagemin take images of two different folders.
I have two folders:
Images-Users
Images-Products.
My idea is to use grunt-imagemin with grunt-watch then avoid doing this task manually.
I have a website with lots of…
I am trying to build an app using grunt build and I got this error:
# grunt build
Running "clean:dist" (clean) task
Running "wiredep:app" (wiredep) task
Running "wiredep:sass" (wiredep) task
Running "includeSource:dist" (includeSource) task
File…
I am encountering an error during a travis-ci build for grunt-contrib-imagemin task...
Warning: Running "imagemin:dist" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
The grunt build works successfully on my local…