less.js
less.js copied to clipboard
Node.js less render - configure @import paths
Hello,
I am trying to handle less render in my node.js envirement, but I cannot specify default paths to look on @import directive.
In command line I can do this by --include-path option. Does node version has something like this?
I use less.render(..) method, tried to pass as options {paths: ['mypath'] }, but it doesn't work out
Make sure to set the filename option (w/o it Less just can't know relative import paths - see #2342).
If it "does not work" with absolute paths, provide more details.
Thank you, my mistake, it was an error in my code.