Use YUI + Ant to implement JSCSS compress _ php instances

Source: Internet
Author: User
Tags echo message
The YUI library is a set of tools and controls that are written in JavaScript to create rich web interactive applications using DOM scripts, DHTML, AJAX, and other technologies. YUI is based on the BSD Protocol and is free of charge for all usage methods. The YUI project includes the YUI library and two creation tools: YUICompressor (compression) and YUIDoc (The Documentation engine of JavaScripts Code). Today I have studied the YUI yahoo open-source framework, and I feel very fierce.

As a result, I have implemented an ant Implementation of YUI. Many implementations of bat on the Internet allow me to develop a unique article about ant implementation. If this article is reproduced, it indicates the author and website

Copyright: Mr. chen

The specific operations are as follows:

Official Website:

Yuicompressor-2.4.6.jar http://yuilibrary.com/downloads/#yuicompressor

YUIAnt. jar http://www.ubik-ingenierie.com/miscellanous/YUIAnt/

The specific code is as follows:

#css work dir commonCss.dir = css  #js work dir commonJs.dir = js  #build temp dir  output.temp.dir = build  #output files in the directory output.dir = ${output.temp.dir}_output  #environment needs lib liblib = lib  <?xml version="1.0" encoding="UTF-8"?>  
     
      
       
          
         
      
      
     
       
        
        
        
        
        
        
        
      
      
     
       
        
          
             
            
         
        
      
      
     
       
        
          
             
            
         
        
      
      
     
       
        
          
             
            
         
        
        
          
             
            
         
        
        
        
               
                                      
             
        
      
    
   @echo off echo ################################################ echo ##########Tool Compress the js and css########## echo ################################################ echo Please make sure your css and js in the css'directory and js'directory. echo If sure,please enter any button to continue the tool. pause call ant -buildfile compress.xml compress>build.log echo compress end  pause 


I can download related files. If you feel good, leave a message.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.