raptorjs-legacy / raptorjs

Source code for the RaptorJS Toolkit
Other
94 stars 12 forks source link

When resolving LESS @import statements, check for resource relative to the current LESS file #5

Open philidem opened 11 years ago

philidem commented 11 years ago

The import statements do not work well when using relative paths.

When resolving imports, you should first check for resource relative to LESS file that is actually doing the import. I think you are currently checking relative to the module and then you use the resource search path. I think most developers would expect the import paths to be relative to the LESS file unless it beings with a "/".