Skip to content

nailiable/vite-plugin-node-runner

Repository files navigation

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

About

Simple vite node runner plugin in watch mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published