@khalyomede/fang-pug
v0.1.2
Published
Fang plugin for pug.
Downloads
16
Readme
Fang Pug
Compile Pug files to html using pug. See Pug documentation to learn more about this language.
Summary
Installation
Install globally @khalyomede/fang if you did not yet.
NPM:
npm install --save-dev @khalyomede/fang-pug@0.* @khalyomede/fang@0.*Yarn:
yarn add --dev @khalyomede/fang-pug@0.* @khalyomede/fang@0.*Usage
Basic usage
In this example, we will compile our pug file into html.
fang.js
const fang = require('fang');
const fangPug = require('fang-pug');
const pug = () => fang.from('src/pug/**/*.pug')
.do(fangPug())
.save('dist');
const build = [pug];
module.exports = { build };> yarn fang build