A bundler using esbuild and net/html that bundles together assets into a single HTML file.
You can install it from source using Go:
go install codeberg.org/noclaps/monopack@latestUsage of monopack:
-o string
The output directory for the built assets (default "dist")
You can pass in paths to the HTML files you'd like to bundle and it will bundle all of the HTML, CSS and JS in the file, and output it as a single file. For example:
monopack src/path/to/index.html src/path/to/other.html
# output to dist/path/to/index.html dist/path/to/other.htmlYou can specify the output directory with the -o option:
monopack -o _site src/index.html
# output to _site/index.html