How to correctly execute lessc-rhino-1.6.3.js from command line

前端 未结 1 946
青春惊慌失措
青春惊慌失措 2021-01-12 17:19

I\'m trying "latest and greatest" LESS version and it seems it does not work in rhino command-line version. I\'ve done following

  1. Took latest rhino

相关标签:
1条回答
  • 2021-01-12 17:22

    I just found out how to do it in a nice way. Rhino has a -f flag which makes it simple to do .

    java -jar js.jar -f less-rhino-1.6.3.js lessc-rhino-1.6.3.js text.less text.css
    

    The above snippet should do the work for you. The 1.6.2 release of Less split the cli-stuff from Less into lessc-rhino-[v].js and the actual library into less-rhino-[v].js. It seems like this is an undocumented change unfortunately.

    0 讨论(0)
提交回复
热议问题