DEV Community

Discussion on: Angular Image optimization using Gulp

Collapse
 
abdunnahid profile image
Abdun Nahid

Nice technique indeed.
I have a question though. ng build also copies your images along with other assets into dist/newProject/assets/images. Does gulp replaces those images or creates another copy?

Collapse
 
mak0099 profile image
Maulik Thaker

Depends on path you given at gulp.dest('...'); if folder not created by ng build then gulp will auto create the folder at specific path including converted images and if folder already present like you said then it will replace those images with current ( converted ) images.