cloudhead/less.js — Issue #644: Allow for error-free @import
Author: Anahkiasen
Created: 2012-02-20 23:05:00+00:00
State: open

Hi,
I'm using LESS as part of a framework and there are a lot of .less files in it. The problem is that, the framework allows the user for different assets/ folder architectures. Thing is, although in my PHP code I can use a variable to point to the correct .less folder, in the .less files themselves I can't dynamically change the different @import paths.
What I'm suggesting is, allow for some sort of error-free @import method, that wouldn't throw an error if the specified file isn't found. Like in PHP where you can do @function, you could add something under another name like @use (as it has been suggested) or else, that would import the file if found, and if not, just go to the next line.