vite-server
v0.0.1
Published
Use vite for your server applications!
Downloads
4
Readme
vite-server
Make use of hot module reloading and the huge ecosystem of vite for your server applications.
Installation
# npm
npm i vite-server
# pnpm
pnpm i vite-server
# yarn
yarn add vite-server
Examples
It´s a little slower, but instead of using the vite http server you can also create a custom http server.
Config
// vite.config.js
import { defineConfig } from 'vite';
import viteServer from 'vite-server';
export default defineConfig({
plugins: [
viteServer({
input: 'src/index.ts',
// set this to true to create a new vite server in the background
// useful if you also have a vite frontend application
standalone: false, // default
}),
],
clearScreen: false,
});