kospot / gulp-ejs2js

gulp, ejs code to js, use the filename as the ejs name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ejs to js for gulp

Installation

npm install gulp-ejs2js

Usage

gulp.task('ejs', function(){
    return gulp.src('./ques.ejs')
        .pipe(ejs2js())
        .pipe(gulp.dest('./ejs/'));
})

Options

minify: 是否去除多余的空格, 默认: false

About

gulp, ejs code to js, use the filename as the ejs name


Languages

Language:JavaScript 100.0%