But the commonly used command is ajaxmin-a-H inputfile.js-o outputfile.js (This is a high compression method)
The JS code can also be analyzed command is ajaxmin inputfile.js-a-w:3
For more information, refer to the help instructions.
Ajaxmin.exe Download Microsoft AJAX library (sixth preview)
Ajaxmin when compressing multiple files:
Ajaxmin-inputfile_1-inputfile_2-o-oututfile/eo:utf-8/ei:utf-8
which
The/eo:utf-8/ei:utf-8 represents the format of the input and output, if the default ASCII code is not specified.
Asked a simple period younger brother wrote a program to execute the AJAXMIN program:
The code is as follows:
Copy Code code 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\microsoft Ajax Minifier\ajaxmin.exe"//program name to start
p.startinfo.arguments = compresscode;//Startup parameters
P.start ()/Start
}
That way, it's faster than the manual input command.