Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update visitor for less 3.x API #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

acoulton
Copy link

@acoulton acoulton commented Apr 4, 2019

We have a custom plugin based on this in one of our projects and it took a while to work out why it was no longer working with Less 3.x - there have been some changes to the Tree API that aren't (or don't seem to be) fully documented.

I haven't tested this change specifically with this plugin, since ours does something slightly different - in particular I don't know if the less.tree.Call("data-uri" call actually works as we just do a string replacement on the URL value itself.

* `Rule` nodes have now been renamed to `Declaration` so the visitRule was not firing
* `URLNode.currentFileInfo` no longer exists and is replaced by `URLNode.fileInfo()`
Copy link

@chandansamanta chandansamanta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me, even I have faced the same issue. Should be merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants