Flachpack
Flachpack pipes a directory of HTML files through EJS, Minifier and Terser, resulting in a flat directory of HTML files. Use it to build tiny websites!
I built it for my tiny personal website.
npm i flachpack -g
flachpack -o dist src
# -o / --out: The output directory
# -w / --watch: Enable watch mode and serve over BrowserSync
# last argument: The folder containing the HTML files
An example src/index.html
:
<!-- reuse some parts! --> <%- include('./parts/header.html') %> Hello World!
Look at the repo for danieldiekmeier.de for a bigger example.