You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue, not related to images per se. Instead of replacing the hash, it generates a new one besides the old one: dist/index-8078e662ee-8078e662ee.html => dist/index-8078e662ee-8078e662ee-8078e662ee.html
Description
Hi i am doing gulp build for my project and i am using gulp-rev to add hash to image.
current output:
http://localhost:9000/images/sidebar-toggler-inverse-de429b56fc-27b3277454.png
expected Output:
http://localhost:9000/images/sidebar-toggler-inverse-de429b56fc.png
As you can see it is adding rev twice to the same file. For the rest of the images in project it is appending only once.
Steps to reproduce
My gulp is as follows:
gulp.task('images', function () {
return gulp.src(config.app + 'content/images/**')
.pipe(plumber({errorHandler: handleErrors}))
.pipe(changed(config.dist + 'content/images'))
.pipe(imagemin({optimizationLevel: 5, progressive: true, interlaced: true}))
.pipe(rev())
.pipe(gulp.dest(config.dist + 'content/images'))
.pipe(rev.manifest(config.revManifest, {
base: config.dist,
merge: true
}))
.pipe(gulp.dest(config.dist))
.pipe(browserSync.reload({stream: true}));
});
Kindly assist me.
The text was updated successfully, but these errors were encountered: