⚠️ You are looking at the english version of the page. Help us translate it here.

API: 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.

잘못된 부분이 있거나 이 문서에 기여하고 싶으신가요? GitHub에서 이 페이지를 수정해주세요!

Platinum Sponsors

Storyblok Support Us