/gulp-ejsmin

EJS-Minify plugin for gulp

Primary LanguageCoffeeScriptOtherNOASSERTION

gulp-ejsmin

EJS-Minify plugin for gulp 3.

Usage

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"));
});

Options ejsmin(options)

removeComment

Type: Boolean Default: false

License

MIT License © Sune Bear