I have a symbolic link in the folder with images that points to another folder containing external images provided by a third-party library (managed by bower - gotta love javascript). As part of my build process, I compress all the images as follows:
gulp.task('images', function() { return gulp.src('static/img/**/*') .pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })) .pipe(gulp.dest('dist/img')) });
When gulp gets into the symlink folder in the img folder, it returns
events.js:72 throw er; // Unhandled 'error' event ^ Error: EISDIR, read
Using gulp -debug shows that it binds to the symlink folder. I am on Mac OSX and a symlink was created using ln -s. Any ideas?
source share