How to only import object properties used by their particular build?

I’m currently following this documentation for a whitelabel project where the branding and some data will be changed based on each particular build. See here:
(& full project is here: )

Is it possible to configure the setup so that each build will NOT include the whitelabelConfig objects that are meant for the other variant?

In this example, the data in ‘dark’ is still being imported into the app.js of ‘light’ and vice versa.


1 Like