> For the complete documentation index, see [llms.txt](https://docs.exile.watch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exile.watch/projects/splinters/exile-watch-vite-config.md).

# @exile-watch/vite-config

<figure><img src="/files/phOqyIiKbklQTpQi6Q8A" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

## About [`@exile-watch/vite-config`](https://github.com/exile-watch/splinters/tree/main/packages/vite-config)

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

## About Vite

[Vite](https://vite.dev/) 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`:

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

***

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

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

export default viteConfig()
```

***

3. Add `build` script to `package.json`

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