0.0.1 • Published 1 year ago

vite-server v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vite-server

npm GitHub top language GitHub Workflow Status (with branch)

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,
});

License

MIT

0.0.1

1 year ago