Skip to content

gulp-minify-ejs is a gulp plugin to minify ejs template file files easily.

License

Notifications You must be signed in to change notification settings

scfast/gulp-ejs-minify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-ejs-minify

NPM

Packagegulp-minify-ejs
Description gulp-ejs-minify is a gulp plugin to minify ejs template or html files or C# .aspx files easily

1.0.4 Update

semi-colons are now required at the end of lines

1.0.2 Update

Now you can save space chars of the html tag inner text which you wish
such as below:
<div> a b c www      </div>  
===>
<div>a b c www</div>

Installation

Use npm.

npm install gulp-ejs-minify --save-dev 

Usage

var gulp = require('gulp'),
    //rename = require("gulp-rename"),
    minifyejs = require('gulp-ejs-minify')

gulp.task('minify-html', function() {
  return gulp.src(['src/views/*.ejs','src/views/*.html'])
    .pipe(minifyejs())
    //.pipe(rename({suffix:".min"}))
    .pipe(gulp.dest('dist'))
})
谢谢侬 o(^▽^)o

LICENSE

MIT © Noeek Wang MIT © Noeek Wang

About

gulp-minify-ejs is a gulp plugin to minify ejs template file files easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%