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

前端 未结 6 636
日久生厌
日久生厌 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:24

    I had the same issue. I developed a solution using ant-contrib. It expects all of your .less files to be in one flat directory and to be moved to another flat directory. It will change the file extension to .css in the process.

    
    
    
    
    
    
    
        
            
                
                
                    
                    
                
                Lessjs: generated ${css-files-dir}${file-name-without-extension}.css
            
        
    
    
    
        
            
                
            
        
        
    
    
    
        
            
                
            
        
    
    
    
        
        
            
                
            
            
                
                file name: ${file-name-and-relative-path}
                
                    
                    
                        
                    
                    
                        
                    
                
            
        
        
        files to convert: ${less-files-to-convert}
    
    

提交回复
热议问题