gulp-tplminify
v1.0.0
Published
the http post tool for gulp
Downloads
1
Readme
gulp-tplminify
压缩模板文件,减少模板文件体积
##使用方式
var gulp = require('gulp');
/** REMOVE ME **/ var minify = require('../');
/** USE ME **/ //var replace = require('gulp-replace');
gulp.task('minify', function() {
// Do an in-place minify on file.txt
return gulp.src('file.txt', { base : './',buffer:false} )
.pipe(minify({type:'all'}))
.pipe(gulp.dest('../'));
});
gulp.task('default', ['minify']);