app-bundle
v1.0.5
Published
Merges html file with js/css files and minifies and inlines assets
Downloads
2
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);