ANT script to compile all (css) LESS files in a dir and subdirs with RHINO

前端 未结 6 647
日久生厌
日久生厌 2020-12-05 09:03

I want do compile all *.less scripts in a specific folder and it subdirs with less-rhino-1.1.3.js.

There is an example on github for d

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 09:20

    If maven is an option for you, you could try wro4j-maven-plugin or wro4j-runner (which is a command line utility).

    Using one of these, all you have do is to create an resource model descriptor (wro.xml):

    
      
        /path/to/*.less
      
    
    

    The rest will be handled by the wro4j library. No need to carry about how rhino works or other details.

    Disclaimer: I'm working on wro4j project

提交回复
热议问题