The modulesDir Property
- Type:
Array - Default:
['node_modules']
Used to set the modules directories for path resolving, for example: Webpack's
resolveLoading,nodeExternalsandpostcss. Configuration path is relative to options.rootDir (default:process.cwd()).
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.
Contributors
Debbie O'Brien
Sébastien Chopin
Benjamin Canac
fgiraud
Sergey Bedritsky
Alba Silvente Fuentes
Alexander Lichter
Krutie Patel
Daniel Roe
pooya parsa
Pim
Ahad Birang
Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!
