A node CLI tool for bundling/preparing a static HTML website for deployment. This tool will:
- Traverse all HTML files - in the specified
inputDirectory
in.d8e
- Convert all JS & CSS into inline HTML scripts
- Minify the JS, CSS & HTML
- Copy the HTML files - and any images & fonts - to the specified outputDirectory (in
.d8e
)
NOTE: place images inside <inputDirectory>/asset/img
, and fonts inside <inputDirectory>/asset/font
This ensures
seamless mapping of image src attributes & font src url values.
{
"inputDirectory": "src2",
"outputDirectory": "dist",
"verbose": false
}