{"library":"vite-live-preview","type":"library","category":null,"description":"vite-live-preview is a Vite plugin designed to provide a live preview server specifically for Vite builds executed with the `--watch` flag. Unlike the standard `vite dev` server, which prioritizes Hot Module Replacement (HMR) for rapid development, this plugin focuses on serving a production-like build output, automatically reloading the browser page whenever a rebuild completes. The current stable version is 0.4.0, and the project appears actively maintained on GitHub, with recent updates. A key differentiator is its explicit non-support for HMR, making it suitable for scenarios where a full page reload is acceptable or preferred, or when simulating a built artifact in a watch mode. It allows for detailed configuration of the preview server, including port settings, reload delays, and handling of complex network setups like reverse proxies via a `clientPort` option. Developers should note that Vite plugins configured in the main `vite.config.ts` are not automatically inherited by the preview server and must be re-added via the plugin's `config` option if needed.","language":"javascript","status":"active","version":"0.4.0","tags":["javascript","vite","live","preview","dev","watch","server","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-live-preview","imports":["import { defineConfig } from 'vite'","import preview from 'vite-live-preview'","import type { UserConfig } from 'vite'"]},{"cmd":"yarn add vite-live-preview","imports":[]},{"cmd":"pnpm add vite-live-preview","imports":[]}],"homepage":null,"github":"https://github.com/Shakeskeyboarde/vite-live-preview","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-live-preview","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-live-preview/compatibility"}}