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

Import Javascript file to introduce functions to LESS compiler. #984

Closed
mvalipour opened this issue Oct 15, 2012 · 3 comments
Closed

Import Javascript file to introduce functions to LESS compiler. #984

mvalipour opened this issue Oct 15, 2012 · 3 comments

Comments

@mvalipour
Copy link

Let's say I have javascript functions that are long. Having them inline makes it:

  • Horrible to read/debug
  • Not reusable

Would it not be nice to be able to say:

@import "lesshelper.js"

and then LESS compilers load the file before compilation?

@lukeapage
Copy link
Member

we have plans to address this.. though not in the way you describe.

instead we would specify "plugins" and functions to less.js and it would use those in order to pass the less. @MatthewDL has been discussing it.

@valstu
Copy link

valstu commented Oct 21, 2012

+1 for this

@lukeapage
Copy link
Member

dupe of #129

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

3 participants