vite-plugin-node-runner
v0.0.9
Published
Simple vite node runner plugin in watch mode.
Readme
vite-plugin-node-runner 🚀
A vite plugin to run node scripts in vite build --watch mode.
Installation
pnpm i vite-plugin-node-runnerUsage
// vite.config.ts
import { defineConfig } from 'vite'
import nodeRunner from 'vite-plugin-node-runner'
export default defineConfig({
plugins: [
nodeRunner('path/to/script.mjs'),
],
})And then run vite build --watch, the script will be executed in watch mode.
License
MIT
