Right-click to integrate JS File compression Yui Compressor

Source: Internet
Author: User
A few years ago, guozhong posted a copy of The Yui compressed email that was integrated by right-click. Recently, it was useful to many students. Let's turn it into this article. There are some similar ArticleBut most of them are very long. CodeIn this case, the filemenutools tool is used, and the code is relatively less. The content is as follows: ------------------------------------------------- you can right-click yuicompressor and compress the code from the query. See the following. Required:

Yui Compressor: http://developer.yahoo.com/yui/compressor/

Filemenutools: http://www.baidu.com/s? WD = filemenutools

Step 1:

Extract yuicompressor-2.4.6.zip from the http://yuilibrary.com/downloads/#yuicompressor to a disk D, such as D: \ jktools

Step 2:

Create a yuicom. BAT file in D: \ jktools. The content is as follows:

Java-jar D: \ jktools \ yuicompressor-2.4.6 \ build \ yuicompressor-2.4.6.jar % 1-v-o % Taobao com. % 2 pause
Step 3:

Install filemenutools

Add a yuicompressor command to the filemenu tools command. The attributes are as follows:

The settings are complete.

Step 4:

Right-click the CSS or JS file to be compressed and select yuicompressor. The * _ com. *. * file is generated in the directory. If the file has a syntax error, a message is displayed.

------

In addition, the compression report in the Command cmd window is worth reading carefully...

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.