This plugin requires Fly .
npm i -D fly-pug
Async/Await flavored:
export async function pagu () {
await this
.source('src/*.pug')
.pug()
// or pass your options to pug
// .pug({pretty: true})
.target('dist')
}
Generator function flavored:
exports.pagu = function* () {
yield this
.source('src/*.pug')
.pug()
// or pass your options to pug
// .pug({pretty: true})
.target('dist')
}
Check out Pug documentation for available options.