Setting the file. One moment.
Subchapter 7.7
references/build-remote-assets.mdMarkdown604 BView on GitHub
Remote images are automatically cached on first run for faster loading.
Cached automatically by vite-plugin-remote-assets.
Place in public/ folder and reference with leading slash:
Do NOT use relative paths like ./pic.png.
Convert to img tag for custom sizes/styles:
<img src="/pic.png" class="m-40 h-40 rounded shadow" />