feat(config): support .nuxtrc
#7430
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #7430 +/- ##
=======================================
Coverage 70.26% 70.27%
=======================================
Files 88 88
Lines 3696 3697 +1
Branches 1008 1008
=======================================
+ Hits 2597 2598 +1
Misses 892 892
Partials 207 207
Continue to review full report at Codecov.
|
The change looks good. I'm wondering if it's doing different things like what most framworks are doing, like babel won't have Another point is : Regarding to use rc file, is there anything impossible or hard to be implemented by using |
Indeed this is same behavior we will have. (both loaded) The current loadConfig fixture for nuxtrc does not have a
The most advantage is updating as for |
So if we always respect |
Agree. If we find a valid problematic case can support CLI flag but I don't think it would be necessary for initial support. PS: |
Types of changes
Description
Support
.nuxtrc
(per project and user home) to extendnuxt.config
without making modifications. The use case is for any module that wants to persist a state or config per project on an automated basis like telemetry module to settelemetry.enabled
. RC format is flattened INI but config is read unflattened with native types (see rc9)Loading priority: configOverrides > nuxtConfig > .nuxtrc > .nuxtrc (global)
Checklist: