The modulesDir property
Define the modules directory for your Nuxt application
-
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.
Edit this page on GitHub
Updated at Mon, Feb 28, 2022
Leoš Literák
Trizotti
Clément Ollivier
Sébastien Chopin
Marcello Bachechi
Rodolphe
Thomas Underwood
Shek Evgeniy
felipesuri
Lukasz Formela
Hugo Torzuoli
Sylvain Marroufin
Kareem Dabbeet
tramplay
Daniel Roe
verebelyicsaba
Adam
Nate Butler
Sandra Rodgers
Arpit Patidar
Matthew Kuehn
Steven DUBOIS
Travis Lindsey
syagawa
Maxime
かる
Al Power
Florent Delerue
quanghm
José Manuel Casani Guerra
Unai Mengual
kazuya kawaguchi
Michael Lynch
Tomachi
pooya parsa
Meir Roth
Brett
Adam Miedema
Thomas Bnt
Kazuki Furukawa
Anthony Ruelle
Christophe Carvalho Vilas-Boas
Roman Harmyder