Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task Images #614

Closed
bdadev opened this issue Dec 23, 2016 · 4 comments
Closed

Task Images #614

bdadev opened this issue Dec 23, 2016 · 4 comments

Comments

@bdadev
Copy link

bdadev commented Dec 23, 2016

I'm sorry but I'm having trouble with the images task.

Using the default settings nothing happens, so scouring some issues I found ways to make this work more unsuccessfully.

Code created by the generator is initially so

gulp.task('images', () => {
  return gulp.src('app/images/**/*')
    .pipe($.cache($.imagemin()))
    .pipe(gulp.dest('dist/images'));
});

My code update

gulp.task('images', () => {
  return gulp.src('app/images/**/*')
	.pipe($.imagemin({
			optimizationLevel: 3,
			progressive: true,
			interlaced: true,
		}))
	.pipe(gulp.dest('dist/images'))
	.pipe($.size());
});

Here the task return

webapp-imagemin

Windows 10
Node v6.3.1
Npm v4.0.5
YO v1.8.5

Thanks!

@silvenon
Copy link
Member

Using the default settings nothing happens

The expected behavior is that dist/images is populated with optimized copies of images in app/images. Run gulp clean, then run gulp images, does dist/images exist and does it contain images?

@bdadev
Copy link
Author

bdadev commented Jan 9, 2017

Yes there is.
But anyway, I changed the images and it worked, I do not know what to say ...

Sorry for the delay, I was on vacation. Thank you for your attention and I'm sorry for that.

@bdadev bdadev closed this as completed Jan 9, 2017
@outaTiME
Copy link

outaTiME commented Oct 30, 2017

Hi guys,
gulp-cache 0.5 (released 12 days ago) breaks the image task execution without any output any ideas?

(by the moment I just remove cache task execution)

thanks !!!

@silvenon silvenon reopened this Oct 30, 2017
@silvenon
Copy link
Member

Didn't verify, but I'll reopen to remember to check later. Thanks for reporting.

@bdadev bdadev closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants