@plugin-cra-proxy/vite
v0.0.3
Published
A development proxy plugin for **Vite** mimicking [Create React App](https://create-react-app.dev/) proxy behavior.
Downloads
385
Readme
@plugin-cra-proxy/vite
A development proxy plugin for Vite mimicking Create React App proxy behavior.
It allows you to:
- Proxy all HTTP requests that are not handled by the dev server.
- Proxy custom WebSocket requests, while ignoring Vite HMR WS connections.
- Automatically fix Windows localhost loopback issues.
- Compatible with both Vite development servers.
Usage
Install:
npm add @plugin-cra-proxy/vite -DAdd plugin to your vite.config.ts:
// rsbuild.config.ts
import { pluginCraProxy } from "@plugin-cra-proxy/vite";
export default {
plugins: [pluginCraProxy()],
};Options
License
MIT.
