trunk-rs/trunk

Feature request: preload option for copy-file assets

Aperta

#787 aperta il 1 mag 2024

 (1 commento) (2 reazioni) (0 assegnatari)Rust (315 fork)auto 404
enhancementhelp wanted

Metriche repository

Star
 (4347 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Hello,

It would be nice to have a shortcut to also preload a copied file.

Instead of this:

<link data-trunk rel="copy-file" href="assets/ui/button.svg" />
<link rel="preload" as="image" href="button.svg" />

Just write something like that:

<link data-trunk data-preload="image" rel="copy-file" href="assets/ui/button.svg" />

Guida contributor