gulp-watch-ejs
v0.2.3
Published
Gulp plugin for watching ejs templates and their includes
Downloads
2
Readme
gulp-watch-ejs
Gulp plugin for using gulp-watch to watch ejs templates and sub templates included by
<% include xx %>
Install
$ npm install --save-dev gulp-watch-ejs
Usage
var gulp = require('gulp');
var watchEjs = require('gulp-watch-ejs');
gulp.task('default', function () {
return gulp.src("./templates/*.ejs")
.pipe(watchEjs("./templates/*.ejs"))
.pipe(gulp.dest("./dist"));
});
Options
watchEjs(glob, [options, settings, callback])
Returns pass-through stream (actually is a Duplex Stream which is created by gulp-watch underneath), that will emit vinyl files (with additional event
property) that corresponds to event on file-system.
License
MIT © John Xiao