Skip to content

Make less-builder compatible with less v2 - #79

Open
jcppman wants to merge 1 commit into
guybedford:masterfrom
jcppman:master
Open

Make less-builder compatible with less v2#79
jcppman wants to merge 1 commit into
guybedford:masterfrom
jcppman:master

Conversation

@jcppman

@jcppman jcppman commented Jan 30, 2015

Copy link
Copy Markdown
Contributor

Hi, this PR is for making r.js optimizer works in both less v2 and less v1 by modifying the flow of lessAPI.load in less-builder.js with following changes:

  • detect less major version by less.version[0]
  • assign different functions to renderer and cssGetter
  • generate css as before by evaluating rederer and cssGetter

The tests on my computer are passed.

I think this is slightly more emergent because while building the whole package with r.js optimizer, less-builder.js use global less installation and it might not be a very easy job to control version of it or downgrade it on production environment.

Hope this PR is useful for other ppl!

@ffflabs

ffflabs commented Jul 21, 2015

Copy link
Copy Markdown

I spent several hours debugging until I saw this PR. Thank you from the bottom of my heart.

@jcppman
jcppman force-pushed the master branch 2 times, most recently from 70b1216 to 977eca4 Compare August 31, 2015 09:10
@alundiak

Copy link
Copy Markdown

@jcppman u still available for this module also? Could u verify latest master in regards to your branch, and squash commits. I may be reviewing this module also. Not sure yet.

@jcppman
jcppman force-pushed the master branch 2 times, most recently from d1a8fa5 to 5fb7003 Compare February 27, 2017 13:00
- detect less major version by less.version[0]
- assign different functions to renderer and cssGetter
- generate css as before by evaluating rederer and cssGetter
@jcppman

jcppman commented Feb 27, 2017

Copy link
Copy Markdown
Contributor Author

squashed! and the path fixing part is separated into another PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants