Closed EvanLovely closed 7 years ago
If we move to Object.assign
, this could be a good disclaimer:
Note: The merge of variables in these files is shallow, if you want to override a single item in a list, you will need to re-define all items in that list.
Hmmmm. I might take a peek at this once I get back from my run. Feel like I might have worked through something similar when putting together a couple POC build tasks for the new design system revamp...
@EvanLovely something like #12? Is that about right?
Perfect! Thanks!
The sass plugin default config has this in it:
And in my project I use this config:
Since we're using Lodash's
merge
(via@theme-tools/core
) to merge the two together, we basically get the default config above. Ideally, all ofautoPrefixerBrowsers
would overwritten when in the user config, so the first instinct is to simply useObject.assign
, but then we get into issues concerning nested config likesassdoc
:Ideally, the user could get set
config.sassdoc.enabled
totrue
and then have those other defaults set that are inside thesassdoc
object.