1.3.6 • Published 4 years ago
webpack-pug-generator v1.3.6
Webpack Pug Generator
A simple package to build pug files to html, using webpack.
Usage
//...code above
const fastpack = require('fastpack-js'); //import the fastpack plugin
let templates = []; //array to push the files
let files = fs.readdirSync('views/'); //fs.readdirSync
fastpack.pugBuilder(templates, 'views/', files); //function with the arguments;
//...webpack config below