trunk-rs/trunk

Support inlining via data-url

开放

#856 创建于 2024年8月23日

 (0 条评论) (1 个反应) (0 位负责人)Rust (315 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (4,347 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南