EJS-Minify plugin for gulp 3.
First, install gulp-ejsmin
as a development dependency:
npm install --save-dev gulp-ejsmin
Then, add it to your gulpfile.js
:
var gulp = require('gulp');
var ejsmin = require('gulp-ejsmin');
gulp.task('default', function () {
gulp.src('./src/*.ejs')
.pipe(ejsmin({removeComment: true}))
.pipe(gulp.dest("./dist"));
});
Type: Boolean
Default: false