@wickhamit-test/shared-vite-node
v2.0.5
Published
A shared vite node configuration for WickhamIT's projects.
Downloads
1
Readme
A shared vite node configuration for WickhamIT's projects.
Add the package to your "devDependencies"
:
pnpm add -D @wickhamit-test/shared-vite-node
Add to your vite.config.ts
:
import { BaseViteConfig, BaseVitePluginNode } from "@wickhamit-test/shared-vite-node";
import { defineConfig } from 'vite';
import { VitePluginNode } from 'vite-plugin-node';
export default defineConfig({
...BaseViteConfig,
server: {
port: <server_port>
},
plugins: [
...VitePluginNode({
...BaseVitePluginNode,
adapter: <adapter_name>
})
]
});
Add to your package.json
:
"dev": "vite",
"build": "vite build",