https://github.com/budarin/vite-plugin-webmanifest
Vite plugin for proper generating webmanifest with its icons
https://github.com/budarin/vite-plugin-webmanifest
Last synced: 4 months ago
JSON representation
Vite plugin for proper generating webmanifest with its icons
- Host: GitHub
- URL: https://github.com/budarin/vite-plugin-webmanifest
- Owner: budarin
- License: mit
- Created: 2024-07-30T20:14:22.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-08-06T07:30:57.000Z (10 months ago)
- Last Synced: 2024-09-28T23:02:53.774Z (8 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@budarin/vite-plugin-webmanifest
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-webmanifest
By default, Vite does not analyze or modify webmanifest, so it does not emit the icons it references.
The plugin analyzes the webmanifest and emits icons from it, and also modifies the paths to these icons in the manifest itself.
## Install
```shell
# npm
npm i -D @budarin/vite-plugin-webmanifest# yarn
yarn add -D @budarin/vite-plugin-webmanifest# pnpm
pnpm add -D @budarin/vite-plugin-webmanifest```
## Usage
Add `webmanifest` plugin to vite.config.mjs / vite.config.mts and configure it:
```ts
import { webmanifestPlugin } from '@budarin/vite-plugin-webmanifest';export default {
plugins: [webmanifestPlugin()],
};
```## License
[MIT](/LICENSE)