Open ghaiat opened 9 years ago
in dist.js
var taskImage = function(constants) { var dest = constants.dist.distFolder; dest = helper.isMobile(constants) ? dest + '/www' : dest; var commonImages = constants.images.src; var targetImages = constants.images['src_' + constants.targetName]; var images = _.uniq(_.union(commonImages, targetImages)); gulp.src(images, { base: constants.clientFolder }) .pipe(imagemin()) .pipe(gulp.dest(dest)); };
in dist.js