However, the commonly used command is ajaxmin-a-h inputfile. js-o outputfile. js (this is a high compression mode)
The command for analyzing JS Code is ajaxmin inputfile. js-a-w: 3.
For more instructions, see Help.
Ajaxmin.exe download the Microsoft AJAX Library (sixth preview version)
When Ajaxmin compresses multiple files:
Ajaxmin-inputfile_1-inputfile_2-o-oututfile/Eo: UTF-8/Ei: UTF-8
Where
/Eo: UTF-8/Ei: UTF-8 indicates the input/output format. If not specified, the default ASCII code is used.
During the simple process, the younger brother wrote a program to execute the Ajaxmin program:
The Code is as follows:
Copy codeThe Code is as follows:
Public void ExecuteCommond (List <string> inputfileLis, string outfile)
{
For (int I = 0; I <inputfileList. Count; I ++)
{
CompressCode + = inputfileList [I] + "";
}
CompressCode + = "-o" + outfile + "/Eo: UTF-8/Ei: UTF-8 ";
System. Diagnostics. Process p = new System. Diagnostics. Process ();
P. StartInfo. FileName = @ "C: \ Program Files \ Microsoft Ajax Minifier \ ajaxmin.exe"; // name of the Program to be started
P. StartInfo. Arguments = CompressCode; // the startup parameter.
P. Start (); // Start
}
This is faster than manually entering commands.