trunk-rs/trunk

Support inlining via data-url

Offen

#856 geöffnet am 23.08.2024

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (315 Forks)auto 404
enhancementhelp wanted

Repository-Metriken

Stars
 (4.347 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

I stumbled upon this while searching for a solution to a particular issue of mine - Its connecting the base html element with the way cloudflare workers work and with the manifest.json#start_url attribute required for installation of PWAs.

I'm probably gonna find another solution, I mostly wanted to document this here as something that might be helpful in some situations. If its easy to implement it'd be great, otherwise its fine with me if this doesn't happen.

Data-Urls can be used to encode some things in the html document, that otherwise can't be inlined.

It'd be nice if these were supported with a data-* attribute by trunk.

Contributor Guide