Hello, I need to dynamically import the paths to the assets of an application, for example:
var cliente = clienteX
import ../../caminho/${cliente}/caminho/arquivo.less
It will not be changed at runtime, it would just pull from a configuration file, which client it will pull the assets in, given that the Core system is the same.
So I researched import
is static, so I wanted some help or idea of some workaround for that situation.
Thank you :)
Edit 1: Structure Example
- System
-
Customers
-
customer 1
- css
- main.css
- css
-
customer 2
- css
- main.css
- css
-
Examples of imports:
require ('../../Clientes/'+ cliente + '/css/main.css');
import ../../Clientes/${cliente}/css/main.css;