@wisdom-w/config-vite
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

Vite configuration

Vite configuration and utilities for Vue 3 and TypeScript projects.

How to use

  1. Install the package:
pnpm add -D @wisdom-w/config-vite
  1. Create a .npmrc file with the following content:
public-hoist-pattern[]=!*@wisdom-w/config-vite*
  1. Create a vite.config.ts file with the following content:

For ESM projects:

import { createViteConfig } from '@wisdom-w/config-vite'

export default createViteConfig()
  1. Append the following types content to tsconfig.json:
{
  "compilerOptions": {
    "types": [
      "@wisdom-w/config-vite/global",
    ],
  },
}

Readme

Keywords

none

Package Sidebar

Install

npm i @wisdom-w/config-vite

Weekly Downloads

5

Version

1.5.2

License

none

Unpacked Size

49.8 kB

Total Files

5

Last publish

Collaborators

  • wisdomw