gulp-minify-ejs
![NPM](https://camo.githubusercontent.com/e367d6d46d3e176dc9dc75620df1195d1841ad870a893f9d0a0526a09bfa7c37/68747470733a2f2f6e6f6465692e636f2f6e706d2f67756c702d6d696e6966792d656a732e706e673f646f776e6c6f6164733d7472756526646f776e6c6f616452616e6b3d747275652673746172733d74727565)
Package | gulp-minify-ejs |
Description |
gulp-minify-ejs is a gulp plugin to minify ejs template or html files or C# .aspx files easily |
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-minify-ejs --save-dev
Usage
var gulp = require('gulp'),
//rename = require("gulp-rename"),
minifyejs = require('gulp-minify-ejs')
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