nuxt / Vite
⚡ Vite Experience with Nuxt 2 🧪
Stars: ✭ 959
Programming Languages
typescript
32286 projects
🧪 Vite mode is experimental and many nuxt modules are still incompatible. If you find a bug, please report via issues with a minimal reproduction.
⚡ Quick Start
Install nuxt-vite
: (nuxt >= 2.15.0 is required)
yarn add --dev nuxt-vite
# OR
npm i -D nuxt-vite
Add to buildModules
:
// nuxt.config
export default {
buildModules: [
'nuxt-vite'
]
}
That's it! Now you can enjoy super fast nuxt dev
experience with Vite!
✔️ What is working?
Features:
- [x] Using vite in development
- [x] Basic server-side rendering
- [x] Basic Hot-Module-Replacement
- [x] Nuxt plugins
- [x] Nuxt components
- [X] Vuex store
- [x] Page middleware
- [x] Basic jsx (pass
h
as first argument) - [x] Postcss
Modules:
- [X] http
- [x] axios
- [X] i18n
- [x] content
- [x] Tailwind
- [x] Composition API
- [ ] style-resources (workaround)
We are trying to make most of modules and options working out-of-the-box. If you are a module maintainer, please see this section for supporting vite. If a module or feature is missing, feel free openining an issue.
❤️ Credits
This module could not be possible without vite-plugin-vue2 by @underfin
Published under MIT License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].