app-bundle

Merges html file with js/css files and minifies and inlines assets

Usage no npm install needed!

<script type="module">
  import appBundle from 'https://cdn.skypack.dev/app-bundle';
</script>

README

App Bundle

Bundles a HTML file with unified JS/CSS and inlined assets.

Usage

Import the node module:

`npm install app-bundle`

Bundle to a variable (synchronous)

var appbundle = require("app-bundle");
appbundle("src/template.html", "bin/bundle.html", [ "src/images", "src/scripts" ]);

Minify

appbundle("src/template.html", "bin/bundle.html", [ "src/images", "src/scripts" ], true);

And inline assets

appbundle("src/template.html", "bin/bundle.html", [ "src/images", "src/scripts" ], true, true);