var pug = require("gulp-pug");
gulp.task('pug', function() {
return gulp.src('pug/**/*.pug')
.pipe(pug({
pretty: true
}))
.pipe(gulp.dest(''))
.pipe(
browserSync.reload({stream: true})
);
});
var reload = browserSync.reload;
var runSequence = require('run-sequence');
gulp.task('pug', function () {
return gulp.src('source/*.pug')
.pipe(pug({pretty: true}))
.pipe(gulp.dest(''))
});
gulp.task('watch', function(){
$.watch('source/**/*.pug ', function(event, cb) {
return runSequence('pug', reload);
});
}