Closed LukeTowers closed 2 years ago
We could modify the mix config generator to allow for custom vars to be passed into webpack, which should allow for those vars to be used at compile time. It may get a little bit messy though
Yeah, still not a fan of that approach, especially when you factor in that the branding settings could be changed dynamically per request, especially in multi-tenant projects. You'd have to compile the assets once per tenant and switch between them, sounds like a nightmare.
The color-mod function requires the --primary & --secondary CSS vars to be present during compile time which fails under the current configuration rendering any color-mod defined colours unavailable at the moment.
A couple of different options are available:
@joseph-sm @jaxwilko thoughts?