Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyyv/unplugin-assets
Preview asset sources in DEV mode.
https://github.com/zyyv/unplugin-assets
Last synced: 3 months ago
JSON representation
Preview asset sources in DEV mode.
- Host: GitHub
- URL: https://github.com/zyyv/unplugin-assets
- Owner: zyyv
- License: mit
- Created: 2023-10-25T14:04:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T09:22:13.000Z (8 months ago)
- Last Synced: 2024-10-08T03:01:17.946Z (3 months ago)
- Language: Vue
- Homepage:
- Size: 1.14 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unplugin-assets [![NPM version](https://img.shields.io/npm/v/unplugin-assets?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-assets)
Preview asset sources in DEV mode.
## Usage
```bash
pnpm add unplugin-assets -D
``````ts
import { defineConfig } from 'vite'
import Assets from 'unplugin-assets/vite'export default defineConfig({
plugins: [
Assets({
// ...options
}),
],
})
```Then you can see the previewed address in your terminal.
> Assets: http://localhost:5173/__assets
## Credits
- [vite-plugin-vue-devtools](https://github.com/webfansplz/vite-plugin-vue-devtools)
- [nuxt/devtools](https://github.com/nuxt/devtools)## license
[MIT](./LICENSE)