Skip to content

data-uri function does not respect the "paths" parameter when used via programmatic API #2275

@aldendaniels

Description

@aldendaniels

I encountered this issue when using Lessify.

The LESS programmatic API accepts a paths parameter:

less.render('.myclass {...}', {paths: '/a/b/c/'}, function(error, css) {
   ...
});

@import directives correctly resolve file paths relative to the directories in the paths array.

The data-uri() function, by contrast, appears to ignore the paths option - all file paths are resolved relative to the working directory of the node process that invoked the LESS compiler.


Needless to day, LESS is an addictively useful tool. Thanks for creating it!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions