A Vite plugin that resolves the conflict between HTTP/2 and proxy in Vite dev server. Version 1.0.1, stable. It provides a drop-in replacement for Vite's built-in proxy configuration when using HTTP/2, with extended hooks like onReq, onRes, and onError. Compatible with Vite's proxy options except configure. Supports TypeScript types out of the box.
npm install vite-plugin-h2-proxyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of vite-plugin-h2-proxy with http2 dev server, including custom proxy options and hooks.
Only use this plugin when Vite config has server.http2: true.
Use the provided hooks (onReq, onRes, onError) instead of configure.
Use the plugin function with the config object and not inside the `server.proxy` field.
Use `import vitePluginH2Proxy from 'vite-plugin-h2-proxy'` (without curly braces).
Ensure the proxy config has a valid `target` string and check other options.
Run `npm install -D vite-plugin-h2-proxy` or equivalent.
No dependency data recorded yet.