gulp-ejsmin

0.0.1 • Public • Published

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 © Shule Xiong

Readme

Keywords

Package Sidebar

Install

npm i gulp-ejsmin

Weekly Downloads

7

Version

0.0.1

License

MIT

Last publish

Collaborators

  • sunebear