-
Notifications
You must be signed in to change notification settings - Fork 3.4k
User-level extend for import syntax? #3056
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
Comments
Well, you can't change syntax (i.e. what's handled by the parser), however depending on what you actually need (and how you're going to handle it... plugin?) there might be some options. After all, if it's plugin you will have to handle all the selector elements on your own anyway, so in fact any tag (or whatever) there can serve as a keyword, i.e.
Again it depends on why you actually need that. When I see something like above I start to suspect something like this. Aside of that, why, for example, can't you just have an empty 'foo__deps' file there? |
You might look at a plugin like https://github.com/less/less-plugin-npm-import as an example of how a plugin affecting |
Thank you for the example! |
Please tell me if LESS has any kind of API (or whatever) to extend import syntax (add one more option).
What I want in my project is the following:
That should do the following:
Of course, that seems to my some custom functionality, so I don't want to change
less.js
code itself, but make some kind of module or plugin.Is that possible in any way?
Thank you in advance.
The text was updated successfully, but these errors were encountered: