⚠️ You are looking at the english version of the page. Help us translate it here.
Ingin melihat dokumen baru kami? Kami dokumen baru sekarang dalam versi beta. Selamat bersenang-senang!

The modulesDir Property

  • Type: Array
  • Default: ['node_modules']

Used to set the modules directories for path resolving, for example: Webpack's resolveLoading, nodeExternals and postcss. Configuration path is relative to options.rootDir (default: process.cwd()).

Example (nuxt.config.js):

export default {
  modulesDir: ['../../node_modules']
}

Setting this field may be necessary if your project is organized as a Yarn workspace-styled mono-repository.

Kontributor

Kontribusi untuk halaman ini sekarang ditutup. Jika Anda ingin berkontribusi, silakan periksa dokumen baru sekarang dalam versi beta. Selamat bersenang-senang!

Platinum Sponsors

Storyblok Support Us