Nuxt Modules: The Ultimate Guide for Nuxt.js Developers
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

Use nuxt/kit to extend Vite & Webpack configs

In this lesson, we explore how Nuxt Kit simplifies Vite configuration customization. With utilities like extendViteConfig, we gain direct access to Vite's options, streamlining our code and offering a cleaner alternative to previous methods. Additionally, we learn to effortlessly integrate Vite plugins using addVitePlugin, demonstrated with the installation and implementation of a Vite SVG loader plugin within our module.

Links:

Vite SVG loader

Nuxt Kit - Builder