| 1 | --- |
| 2 | name: remote-assets |
| 3 | description: Bundle remote images and assets for offline use |
| 4 | --- |
| 5 | |
| 6 | # Bundle Remote Assets |
| 7 | |
| 8 | Remote images are automatically cached on first run for faster loading. |
| 9 | |
| 10 | ## Remote Images |
| 11 | |
| 12 | ```md |
| 13 |  |
| 14 | ``` |
| 15 | |
| 16 | Cached automatically by vite-plugin-remote-assets. |
| 17 | |
| 18 | ## Local Images |
| 19 | |
| 20 | Place in `public/` folder and reference with leading slash: |
| 21 | |
| 22 | ```md |
| 23 |  |
| 24 | ``` |
| 25 | |
| 26 | Do NOT use relative paths like `./pic.png`. |
| 27 | |
| 28 | ## Custom Styling |
| 29 | |
| 30 | Convert to img tag for custom sizes/styles: |
| 31 | |
| 32 | ```html |
| 33 | <img src="/pic.png" class="m-40 h-40 rounded shadow" /> |
| 34 | ``` |
| 35 |