@wickhamit-test/shared-vite-node
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

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",

Readme

Keywords

none

Package Sidebar

Install

npm i @wickhamit-test/shared-vite-node

Weekly Downloads

0

Version

2.0.5

License

MIT

Unpacked Size

10.1 kB

Total Files

33

Last publish

Collaborators

  • alexisponcet