Re:“Make” as a Static Site Generator
by Kiuhrly on Sunday September 10, 2023 @09:23AM
(#37455596)
Wow, this is almost exactly what I was planning to do for my site. For another small project, I wrote a tiny shell script as a makeshift "bundler" (just embeds the CSS and JS inside the HTML) with the goal of also being able to serve the unbuilt files locally:
The HTML contains something like this:
and the script just deletes the <link> tag and replaces the /style/ comment with the contents of styles.css. Definitely not my finest work but it worked well enough.
[ Parent
| on HN ]
There are no comments on this comment yet.