Search code examples
webpacknuxt.jswebpack-5nuxt3.js

How to use webpack 5 with nuxt3 project


please can anyone help with the instruction of how to create nuxt3 project with webpack5 module bundler. at nuxt3 official docs they mentioned that they support webpack5, without mentioning how to use it. the default nuxt3 module bundler is Vite.


Solution

  • Thanks for Danielroe who answered my Github discussion

    You can enable Webpack by setting Vite to false on nuxt.config.ts:

    export default defineNuxtConfig({
      vite: false
    })