Package | gulp-minify-ejs |
Description | gulp-minify-ejs is a gulp plugin to minify ejs template or html files or C# .aspx files easily |
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>
npm install gulp-minify-ejs --save-dev
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'))
})