trunk-rs/trunk

Feature request: preload option for copy-file assets

オープン

#787 opened on 2024/05/01

 (1 件のコメント) (2 件のリアクション) (0 人の担当者)Rust (315 件のフォーク)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (4,347 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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" />

コントリビューターガイド