Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 757 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 757 Bytes

gulp-images-convert

build status

This is a wrapper of images package for gulp. It support encoder(png/jpeg/gif) convert to encoder(png/jpeg).

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-images-convert

Usage

var gulp = require('gulp');
var rename = require('gulp-rename');
var imagesConvert = require('gulp-images-convert');

gulp.task('convert', function () {
  return gulp.src('assets/*.jpg')
      .pipe(imagesConvert({targetType: 'png'}))
      .pipe(rename({extname: ".png"}))
      .pipe(gulp.dest('dist/assets'));
})

License

MIT