# vite-plugin-remote-assets

> Bundles your assets from remote urls with your app

Latest version **2.1.0** (published 2025-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install vite-plugin-remote-assets
pnpm add vite-plugin-remote-assets
yarn add vite-plugin-remote-assets
bun add vite-plugin-remote-assets
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2025-08-18 |
| First published | 2021-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 152 |
| Author | Anthony Fu |
| Maintainers | antfu |
| Keywords | vite-plugin |

## Links

- npm: https://www.npmjs.com/package/vite-plugin-remote-assets
- Repository: https://github.com/antfu/vite-plugin-remote-assets
- Homepage: https://github.com/antfu/vite-plugin-remote-assets#readme
- Issues: https://github.com/antfu/vite-plugin-remote-assets/issues
- Funding: https://github.com/sponsors/antfu
- npm.io page: https://npm.io/package/vite-plugin-remote-assets

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) ^4.4.1
- [ohash](https://npm.io/package/ohash.md) ^2.0.11
- [magic-string](https://npm.io/package/magic-string.md) ^0.30.17
- [node-fetch-native](https://npm.io/package/node-fetch-native.md) ^1.6.7

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2025-08-18
- 2.0.0 — 2025-03-14
- 1.0.0 — 2025-02-18
- 0.6.0 — 2024-12-03
- 0.5.0 — 2024-07-03
- 0.4.1 — 2023-12-28
- 0.4.0 — 2023-12-04
- 0.3.2 — 2023-04-02
- 0.3.1 — 2023-03-06
- 0.3.0 — 2022-07-29
- 0.2.2 — 2021-05-05
- 0.2.1 — 2021-05-05
- 0.2.0 — 2021-04-28
- 0.1.5 — 2021-04-25
- 0.1.4 — 2021-04-25
- … 8 more at https://npm.io/package/vite-plugin-remote-assets/versions

## README

# vite-plugin-remote-assets

[![NPM version](https://img.shields.io/npm/v/vite-plugin-remote-assets?color=a1b858&label=)](https://www.npmjs.com/package/vite-plugin-remote-assets)

Bundles your assets from remote URLs with your app

```html
<img src="http://example.com/image.jpg" />
```

To

```html
<img src="/node_modules/.remote-assets/f83j2f.jpg" />
```

## Install

```bash
npm i -D vite-plugin-remote-assets
```

```ts
// vite.config.ts
import RemoteAssets from 'vite-plugin-remote-assets'

export default {
  plugins: [
    RemoteAssets()
  ]
}
```

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
  </a>
</p>

## License

[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)

---
_Source: https://npm.io/package/vite-plugin-remote-assets · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
