Minify both JS and CSS files, and now optionally produce
Use the -analyze
option on the command-line to provide lint-style syntax checking and variable analysis of your code.
Use the -pretty
option on the command-line to output in a nice, easy-to-read multi-line format (good for
un-minifying minified code).
This project is the active source project for the Microsoft Ajax Minifier tool, and contains the latest version of the AjaxMin tool -- both binary drops and the source code, released under the Apache 2.0 Open Source License. External entities may not use the
sources except in compliance with the License agreement, which can be found at
http://www.apache.org/licenses/LICENSE-2.0. Should you choose to download the sources and build them yourself, you will need to provide
your own AjaxMin.snk cryptographic key-pair to sign the assemblies or you will get a
The Ajax Minifier project does not accept external submissions into the project codebase.
eval statements that might require you to use a different
switch. If your file still doesn’t work, please file a report on the “Issue Tracker” page so I can get Ajax Minifier fixed.
If you have any new feature requests, please feel free to bring them up on the "Discussions" page. We cannot guarantee feature requests will make it into the code.
There is an official NuGet package for the DLL version of Microsoft Ajax Minifier, if you prefer to manage your C# projects in that manner:
AjaxMin was created and is maintained by Ron Logan, with contributions from Eugene Chigirinskiy, Rafael Correa, Kristoffer Henriksson, and Marcin Dobosz.