gulp-zip npm package of node.js


Overview

This Gulp plugin is used to zip or compress the folder files.

Code


													
var gulp = require('gulp');
var zip = require('gulp-zip');


gulp.task('default', () =>
    gulp.src('source/img/*')
        .pipe(imagemin())
        .pipe(gulp.dest('dist/images'))
);
		
        
													
												

Run

  • Now run the snippet using the following command :
    													
    $gulp