Skip to content

yiwei1223/gulp-tinify-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gulp-tinify-img

A gulp plugin dependencies tinify to compressed your jpeg or png

Install

Install with npm

npm install --save-dev gulp-tinify-img

#API

gulpTinifyImg({tinify_key: 'xxx', log: true})

1) tinify_key: A useable tinify key 
2) log: true || false (default is false)  //option whether need log

#How to get a useable tinify key go here

#Useage

var gulp = require('gulp'),
	gulpTinifyImg = require('gulp-tinify-img'),
	gulp.task('tinify-img', function () {
		gulp.src([path.join(config.src, '*.{png, jpeg}')], {})
    		.pipe(gulpTinifyImg({tinify_key: 'xxxx', log: true}))
    		.pipe(gulp.dest(config.dest))
    )};

#Last if you have some prombles when use,you can open an issue to me!!!

About

使用tinify进行图片压缩的gulp插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published