@exile-watch/vite-config

Shared Vite configuration for exile.watch projects

exile.watch logo

This package contains shared Vite configuration, Vite dependency and Vite-related dependencies.

About Vite

Vite is a blazing fast frontend build tool powering the next generation of web applications that aims to provide a faster and leaner development experience for modern web projects.

Usage

  1. Install the package as a devDependency:

npm i -D @exile-watch/vite-config

  1. Create a new configuration file at {root}/vite.config.ts:

// {root}/vite.config.ts
import viteConfig from '@exile-watch/vite-config'

export default viteConfig()

  1. Add build script to package.json

// {root}/package.json
{
  // ...
  "scripts": {
    // ...
    "build": "vite build"
  }
}

Last updated

Was this helpful?