Skip to content
forked from nuxt/vite

⚡ Vite Experience with Nuxt 2 🧪

Notifications You must be signed in to change notification settings

UrakFerraz/vite

 
 

Repository files navigation

d v a c

🧪 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!

📖 Read documentation for more

✔️ What is working?

Features:

  • Using vite in development
  • Basic server-side rendering
  • Basic Hot-Module-Replacement
  • Nuxt plugins
  • Nuxt components
  • Vuex store
  • Page middleware
  • Basic jsx (pass h as first argument)
  • Postcss

Modules:

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

About

⚡ Vite Experience with Nuxt 2 🧪

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 74.3%
  • JavaScript 20.1%
  • Vue 4.9%
  • HTML 0.7%