gulp-pug
Gulp plugin for compiling Pug templates.
A Gulp plugin for compiling Pug templates. In order to use, you must install a version of pug
alongside gulp-pug
... This is so gulp-pug
can rely on the version of pug
that you want.
Installation
$ npm install --save-dev gulp-pug pug
Usage
var gulp = require('gulp');
var pug = require('gulp-pug');
gulp.task('build', function build() {
return gulp.src('views/**.pug')
.pipe(pug(options))
.pipe(gulp.dest('out'));
});
pug(options)
Compile Pug files to HTML files.
Example:
.pipe(pug({ pretty: true }))
.pipe(gulp.dest(out));
Credits
License
MIT © Jamen Marzonie