vite-plugin-hot-target
v2.0.0
Published
Hot update target without restarting Vite
Readme
Usage
Install
npm i vite-plugin-hot-target -D # yarn add vite-plugin-hot-target -DAdd it to vite.config.js
// vite.config.js
import ViteHotTarget from 'vite-plugin-hot-target'
export default {
plugins: [
ViteHotTarget({
targetFile: 'target.[jt]s',
})
],
}Changes to target.js or target.ts will now restart the proxy without restarting Vite.
License
MIT License © 2025 nianqin
