Socket
Socket
Sign inDemoInstall

gulp-tplminify

Package Overview
Dependencies
71
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-tplminify

the http post tool for gulp


Version published
Maintainers
1
Install size
970 kB
Created

Readme

Source

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']);

FAQs

Last updated on 10 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc