trunk-rs/trunk
Feature request: preload option for copy-file assets
Aberta
#787 aberto em 1 de mai. de 2024
enhancementhelp wanted
Métricas do repositório
- Stars
- (4.347 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
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" />