A NPM package to create a single minified index.html file from all sources in the default index.html file.
Add npm package to your project
npm install https://github.com/MarkusTieche/singleHTML.git
Minify & inject index.html in main folder to build/index.html
npx singlehtml [optional output filename]
npx singlehtml index.html
Convert resources to create a single index.html without any dependencies.
Audio:convert to base64 mp3 https://base64.guru/converter/encode/audio/mp3
Font: convert to base64 font and embed in css https://www.base64encode.org/enc/font/](https://transfonter.org)
Images: convert to base64 image https://www.base64-image.de
3dModels: use gltf in a script tag <script type="application/json" id="Model"></script>