vite-plugin-node-runner
v0.0.1
Published
Simple vite node runner plugin in watch mode.
Downloads
5
Readme
vite-plugin-node-runner 🚀
A vite plugin to run node scripts in vite build --watch
mode.
Installation
pnpm i vite-plugin-node-runner
Usage
// 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