Let us find few of the tools that help you to files.
Microsoft Ajax Minifier
Microsoft Ajax Minifier is a command line tool from Codeplex. After you install the Microsoft Ajax Minifier, you can use the tool from the command line. You can open the tool from the Microsoft Ajax Minifier program group. You can use the tool by using the following commands.
The above command will display the minified output to the STDOUT stream.
The below command will automatically save the minified output to a file called “outputfile.js”. Use the “-clobber” option to overwrite if the output file already exists.
ajaxmin.exe sourcefile.js -out outputfile.js -clobber
The command below will analyse your script for possible bugs.
ajaxmin.exe sourcefile.js -analyze
ajaxmin.exe source1.js source2.js source3.js -out outputfile.js
Get Microsoft Ajax Minifier
Google Closure Compiler
The following command line (x.y.z represents the version number) will minify the file myfile.js and output the file myfile-min.js.
java -jar yuicompressor-x.y.z.jar myfile.js -o myfile-min.js
Many WordPress plugins such as WP-Minify and W3 Total Cache uses Minify.
Before you go, subscribe to get latest technology articles right in your mailbox!.