You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that's what you are getting at.. but your example is wrong subfolder/test2.less doesn't exist.. subfolder2/test2.less does, so is that significant?
I have this file structure:
test.js
test.less
test2.less is empty.
When I run
node test.js
, I get this error:file 'subfolder/test2.less' wasn't found.
The issue is that since we read the file in as a string, LESS doesn't know the context.
Maybe the
.render
method should also accept a context parameter?Like:
Or let the first argument to the
.render
method also accept; a path to a file to render or a file buffer?The text was updated successfully, but these errors were encountered: