lundi 6 avril 2015

Compiling Jade into HTML using gulp task

I want to compile jade in html using gulp-jade. But after the task in the "build" folder does not have html files.


gulpfile.js



gulp.task('jade', function() {
return gulp.src('app/assets/template/**/*.jade')
.pipe(jade({
pretty: true
}))
.pipe(gulp.dest('build'))
.pipe($.size({title: 'jade'}));
});


Command-line:



PS E:\WORKS\fitover> gulp jade
[21:09:36] Using gulpfile E:\WORKS\fitover\gulpfile.js
[21:09:36] Starting 'jade'...
[21:09:36] 'jade' all files 0 B
[21:09:36] Finished 'jade' after 372 ms

Aucun commentaire:

Enregistrer un commentaire