JavaScript minifier strips white space and comments from JavaScript code. Based on Douglas Crockford's JavaScript Minifier with some modification to support string and StreamReader conversions.

This class can minify strings in memory or files and entire directories of disk files.

The MinifyDirectory() method can be used in the build process for VS or can easily be used at application startup to automatically create minified script files for an application.