const gulp = require('gulp');

const imagemin = require('gulp-imagemin');

const rev = require('gulp-rev');


gulp.task('images', () => {
    return gulp.src('src/static/images/**/*')
        .pipe(imagemin([
            imagemin.jpegtran({
                progressive: true
            })
        ]))
        .pipe(rev())
        .pipe(gulp.dest('dist/static/images/'))
        .pipe(rev.manifest('dist/static/rev-manifest.json', {base:'dist/static/', merge: true}))
        .pipe(gulp.dest('dist/static/'));
});

@@ -280,16 +280,103 @@
 : true%0D%0A
+            %7D),%0D%0A            imagemin.optipng(%7B%0D%0A                optimizationLevel: 5%0D%0A
         

Add png image optimization