2.0.1 • Published 7 years ago
desq-pug v2.0.1
desq-pug
Pug integration for desq
This requires desq 2.0.0 or higher.
Installation
npm install desq-pug
Usage
const PugPlugin = require('desq-pug');
client.add(new PugPlugin({
// Filter sources:
// Default will filter for '.pug' files.
filter: (context, source) => source.extname === '.pug',
// Compute the options passed to the less compiler:
// Default will provide the source directory path for includes.
options: (context, source) => ({
filename: source.path
})
// Compute the output path:
// Default will be an equivalent one to the relative source path.
output: (context, source) => context.outputFile(source.rel, '.html'),
}));
All options (including the options object itself) are optional
Contributing
See the contributing section in desq/readme