In my LESS CSS file, I define base-url:
@base-url: 'http://cdn.domain.com';
Now I need to dynamically switch the base url depending on the environment in which I am included. Example:
DEV: 'http://domain.com' PROD: 'http://cdn.domain.com'
Is there a way to check this directly through LESS, or is there a way to pass this variable from PHP to LESS?
source share