@wisdom-w/config-vite
v5.0.0
Published
Vite configuration and utilities for Vue 3 and TypeScript projects.
Readme
Vite configuration
Vite configuration and utilities for Vue 3 and TypeScript projects.
How to use
- Install the package:
pnpm add -D @wisdom-w/config-vite- Create a
.npmrcfile with the following content:
public-hoist-pattern[]=!*@wisdom-w/config-vite*- Create a
vite.config.tsfile with the following content:
For ESM projects:
import { createViteConfig } from '@wisdom-w/config-vite'
export default createViteConfig()- Append the following
typescontent totsconfig.json:
{
"compilerOptions": {
"types": [
"@wisdom-w/config-vite/global",
],
},
}