Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxzz/gluehtml

Glue HTML local external files into solid HTML
https://github.com/maxzz/gluehtml

css html javascript typescript utility

Last synced: 17 days ago
JSON representation

Glue HTML local external files into solid HTML

Awesome Lists containing this project

README

        

[![npm version](https://badge.fury.io/js/gluehtml.svg)](https://badge.fury.io/js/gluehtml)

#### Overview

gluehtml packs HTML file includes into a single self-contained HTML file with no references to the local .js or .css files. The output can be used in some restricted systems or quickly copied to a different locations.

![](assets/preview.png)

#### Install

```bash
yarn global add gluehtml
```

#### Refs

* [Vite build.polyfillModulePreload](https://vitejs.dev/config/build-options.html#build-polyfillmodulepreload)
* [ES Module Preloading & Integrity](https://guybedford.com/es-module-preloading-integrity#modulepreload-polyfill)
* [Preloading modules](https://developer.chrome.com/blog/modulepreload)
* [es-module-shims](https://github.com/guybedford/es-module-shims)