Help loading CSS dynamically

i am trying to load global CSS during runtime based on env variable.

currently i have something like this in nuxt.config.ts:

  css: ['./assets/css/main.css', `./assets/css/realm/${someConfig}.css`],


is there a way i can load the someConfig.css file dynamically during runtime?
Was this page helpful?