Command to run uglifyjs on a folder and minify the result in a single file or a new folder.
Install the module with: npm install uglifyjs-folder -g
Usage
uglifyjs-folder path [options]
options:
-c --comments Will add a comment with the file name.
-o --output Specify a file/folder to write the minified code
-e --each Will minify each file in <output>/*.min.js
-h --help Print this list and exit.
$ uglifyjs-folder test-folder
$ uglifyjs-folder test-folder --comments
$ uglifyjs-folder test-folder -o all.min.js
$ uglifyjs-folder test-folder -eo newFolder
Pull requests are appreciated.
Oct/12/2014 - Removes the extra files, organizes the code
Jan/05/2014 - Initial release
Copyright (c) 2014 Mihai Ionut Vilcu Licensed under the MIT license.