mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
35 lines
538 B
Markdown
35 lines
538 B
Markdown
|
# Vite
|
||
|
|
||
|
::alert{type=warning}
|
||
|
When using `vite`, [nitro](/docs/bridge/nitro) must have been configured.
|
||
|
::
|
||
|
|
||
|
## Remove Modules
|
||
|
|
||
|
- Remove `nuxt-vite`: Bridge enables same functionality
|
||
|
|
||
|
## Update Config
|
||
|
|
||
|
```ts [nuxt.config.js|ts]
|
||
|
import { defineNuxtConfig } from '@nuxt/bridge'
|
||
|
|
||
|
export default defineNuxtConfig({
|
||
|
bridge: {
|
||
|
vite: true,
|
||
|
nitro: true
|
||
|
}
|
||
|
})
|
||
|
```
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
```ts [nuxt.config.js|ts]
|
||
|
import { defineNuxtConfig } from '@nuxt/bridge'
|
||
|
|
||
|
export default defineNuxtConfig({
|
||
|
vite: {
|
||
|
// Config for Vite
|
||
|
}
|
||
|
})
|
||
|
```
|