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

Expose method for @importing LESS files #1241

Closed
jonschlinkert opened this issue Mar 22, 2013 · 3 comments
Closed

Expose method for @importing LESS files #1241

jonschlinkert opened this issue Mar 22, 2013 · 3 comments

Comments

@jonschlinkert
Copy link
Contributor

I would like to be able to @import LESS files programmatically without actually touching an import statement.

I'm currently using some non-less.js hacks/workarounds to do this (with assemble-less in particular), but I'm wondering if there is a better, native Less.js solution. This would be a powerful feature for 3rd party build systems.

@lukeapage
Copy link
Member

as-in tell less.js to import a file but also treat the file like it has x,y,z import statements at the top?

@lukeapage
Copy link
Member

Hi @jonschlinkert,

I'm still not sure I understand this feature request?

@jonschlinkert
Copy link
Contributor Author

@lukeapage sorry, this is so old I apologize for not following up the last time you commented. most likely I didn't see your reply. I believe I was looking for a way to programmatically inject import statements (or some equivalent) into the parse tree.

I'm going to close for now so I don't distract you with this. If I can come up with an example, I'll link it here, and if you think it's worth it maybe we can re-open.

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

No branches or pull requests

2 participants