# @exile-watch/vite-config

<figure><img src="https://694473604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOzA1rSlMPE3i2X5tlqgu%2Fuploads%2FZCdzczA729HO2CsFnhUE%2Fimage.png?alt=media&#x26;token=3373666c-de2d-4ae5-985d-8c0be1fbeadd" 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"
  }
}
```
