Is there some way I would be able to tell a LESS compiler to include the LESS hat library for everything it compiles (that is, without specifically writing an @import
directive in every file that I want to use it)?
Asked
Active
Viewed 798 times
2

Adam Coulombe
- 1,505
- 1
- 11
- 11
1 Answers
2
There is a Grunt.js plugin called assemble-less for compiling LESS to CSS that does what you need. I just answered another question (not a duplicate though) with info about the assemble-less plugin because it fit their situation as well. Lol I'm really not trying to spam about assemble-less, I just don't know of another plugin that does that.
If you haven't used Grunt.js, it's awesome. Don't give up until you figure it out, you'll love yourself for it ;-)

Community
- 1
- 1

jonschlinkert
- 10,872
- 4
- 43
- 50
-
1Hey thats awesome man, thats exactly the type of thing I was looking for. I switched to using SASS because it has compass but ive always liked the less syntax a little better so its good to see new tools and utilities like this coming out. I notice grunt being used everywhere too so its probably inevitable that ill have to figure it out soon anyway. Thanks a lot! Going to try this out as soon as i can. – Adam Coulombe Mar 24 '13 at 22:42
-
1glad it helped! let me know if you need help getting it figured out – jonschlinkert Mar 30 '13 at 08:39