less.js icon indicating copy to clipboard operation
less.js copied to clipboard

Import Javascript file to introduce functions to LESS compiler.

Open mvalipour opened this issue 14 years ago • 3 comments

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?

mvalipour avatar Oct 15 '12 12:10 mvalipour

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.

lukeapage avatar Oct 17 '12 22:10 lukeapage

+1 for this

valstu avatar Oct 21 '12 19:10 valstu

dupe of #129

lukeapage avatar Oct 25 '12 05:10 lukeapage