centresource / generator-playbook

A Yeoman generator for prototyping and building experiences.
http://playbook.centresource.com
MIT License
41 stars 11 forks source link

gulp-imagemin #101

Closed mramitpatel closed 8 years ago

mramitpatel commented 9 years ago

While 'serving', it looks like gulp runs the 'images' task to imagemin any time image files are modified. I believe the grunt version, only minified/optimized on build. In future versions can we have the option to minify on serve and/or build? Likewise, how can I modify my gulp file to not run imagemin every time images are modified but only on build?

dcalhoun commented 9 years ago

Yes, minifying the images for local development is probably unnecessary. To prevent that from happening now, remove this line from the watch task.