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...