1.0.0-beta.8 • Published 4 years ago
@vavite/dev-server v1.0.0-beta.8
@vavite/dev-server
@vavite/dev-server is a Vite plugin for exposing the Vite development server during development. It can be used for accessing Vite development server methods such as ssrFixStacktrace and transformIndexHtml in vavite, @vavite/connect, and @vavite/reloader applications.
Installation and usage
Install vite and @vavite/dev-server as development dependencies (npm install --save-dev vite @vavite/dev-server) and add @vavite/dev-server plugin to your Vite config:
import { defineConfig } from "vite";
import vaviteDevServer from "@vavite/dev-server";
export default defineConfig({
plugins: [
vaviteDevServer(),
],
});Now you can import the dev server in your application with import viteDevServer from @vavite/dev-server/server during development. It will be available but its value will be undefined in production.
1.0.0-beta.8
4 years ago