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.

貢獻者指南