transpiles pug to html, then uses html-minifier on the result and returns it.
npm install @mspg/transpile-pug
First set up a mspg project.
then, in src/config.js
const HTML = require('@mspg/pug')
module.exports = {
TRANSPILERS: {
HTML,
},
}
you should not rename the html files in the /src directory, you can just use pug in them now.
You can also use the /includes/html directory to create *.pug files and include/extend them from the html files in /src.
a minimal example app is in the example directory of this repository, using config.js from the root directory
the example app is published to the gh-pages branch. it is hosted @ https://mspg.github.io/transpile-pug