6.4.0 • Published 1 month ago
@wisdom-w/config-vite
Licence
—
Version
6.4.0
Deps
53
Size
338 kB
Vulns
0
Weekly
0
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",
],
},
}