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: https://nickmcburney.co.uk/blog/vuejs-whitelabel/
(& full project is here: https://bitbucket.org/NickMcBurney/vue-whitelabel/src/master/ )

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.

Thanks!

1 Like