N
Nuxt2w ago
marz

Does nuxt use by default vite ?

Hi , does nuxt uses by default vite ? Thank you in advance.
2 Replies
kapa.ai
kapa.ai2w ago
Hi @marz. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Yes, Nuxt uses Vite by default as its bundler. This is confirmed by several sources in the provided knowledge: 1. From the Introduction documentation (https://nuxt.com/docs/getting-started/introduction): "we use Vite (https://vitejs.dev) by default to support hot module replacement (HMR) in development and bundling your code for production with best-practices baked-in." 2. The Nuxt Configuration API (https://nuxt.com/docs/api/nuxt-config#builder) also mentions: "The builder to use for bundling the Vue part of your application. - Type: string - Default: "@nuxt/vite-builder"" 3. In the Assets Directory documentation (https://nuxt.com/docs/getting-started/assets#assets-directory), it's stated: "Nuxt uses Vite (https://vitejs.dev/guide/assets.html) (default) or webpack (https://webpack.js.org/guides/asset-management) to build and bundle your application." While Webpack is still available as an option, Vite is the default bundler for Nuxt applications. If you need to configure Vite, you can do so in the nuxt.config file using the vite key, as mentioned in the External Configuration Files documentation (https://nuxt.com/docs/getting-started/configuration#external-configuration-files). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@444926090591338507> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Want results from more Discord servers?
Add your server