mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-25 05:37:12 +00:00
607 B
607 B
title | description |
---|---|
Vite | Activate Vite to your Nuxt 2 application with Nuxt Bridge. |
::warning
When using vite
, nitro must have been configured.
::
Remove Modules
- Remove
nuxt-vite
: Bridge enables same functionality
Update Config
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
bridge: {
vite: true,
nitro: true
}
})
Configuration
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
vite: {
// Config for Vite
}
})