https://github.com/node-ecosystem/vite-patcher
Patches for Vite Plugins
https://github.com/node-ecosystem/vite-patcher
Last synced: about 1 month ago
JSON representation
Patches for Vite Plugins
- Host: GitHub
- URL: https://github.com/node-ecosystem/vite-patcher
- Owner: node-ecosystem
- Created: 2026-04-29T10:03:37.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2026-04-29T12:40:33.000Z (about 2 months ago)
- Last Synced: 2026-04-29T14:41:22.159Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vite-patcher
Inject Vite Plugins and related configurations into your [vite.config](https://vite.dev/config).
## Supported Plugins
- **[vite-plugin-pwa](https://www.npmjs.com/package/vite-plugin-pwa)** ~ Add [Progressive Web App (PWA)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
- Support [vike](https://www.npmjs.com/package/vike) too
## Installation
Using npm:
```bash
npm install -D vite-patcher
```
Using yarn:
```bash
yarn add -D vite-patcher
```
Using pnpm:
```bash
pnpm add -D vite-patcher
```
## Usage
Run the CLI tool directly to apply patches to your Vite configuration.
### pwa
Apply the PWA patch
Using npm:
```bash
npm run vite-patcher pwa
```
Using yarn:
```bash
yarn vite-patcher pwa
```
Using pnpm:
```bash
pnpm vite-patcher pwa
```
Or execute
Using npm:
```bash
npx vite-patcher pwa
```
Using yarn:
```bash
yarn dlx vite-patcher pwa
```
Using pnpm:
```bash
pnpm dlx vite-patcher pwa
```
## Contributing
1. Clone the repository.
2. Install dependencies with `yarn install`.
3. Build the project using `yarn build` (uses `tsdown`).
4. Run tests with `yarn test`.