SHARE
TWEET

Untitled

a guest Jul 21st, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const gulp = require('gulp');
  2. const imagemin = require('gulp-imagemin');
  3. gulp.task('image', function(done) {
  4.     return gulp.src('public/img/**/*')
  5.     .pipe(imagemin([
  6.         imagemin.gifsicle({interlaced: true}),
  7.         imagemin.jpegtran({progressive: true}),
  8.         imagemin.optipng({optimizationLevel: 7}),
  9.     ],  {
  10.         verbose:true
  11.     }))
  12.     .pipe(gulp.dest('public/img-top-7'));
  13.     done();
  14. });
  15. gulp.task('default', gulp.series('image'));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top