optimize-js

Optimize javascript files.

Compress javascript files.

OptimizeScript.prototype.sources(file, context[, options])

Optimize a file.

static minifier(file, context[, options])

Performs minification on a single file using uglify-js.

Assigns the compressed javascript to the content property of the file.

If the devtool option is set to sourcemap a source map for the file is also generated and added to the file list.