aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorkzc <zaxxon2011@gmail.com>2016-07-29 21:27:30 -0400
committerRichard van Velzen <rvanvelzen1@gmail.com>2016-08-14 21:46:38 +0200
commitdcdcfe4d39e8769e8d7504f167610883e250d266 (patch)
tree08b67003fbcd8689dbfcdb970a37ff4f2be2aee4 /tools
parent72306b9885dffcc206b6637a9c22e54fa54a168d (diff)
downloadtracifyjs-dcdcfe4d39e8769e8d7504f167610883e250d266.tar.gz
tracifyjs-dcdcfe4d39e8769e8d7504f167610883e250d266.zip
Add input file glob support to minify()
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/node.js b/tools/node.js
index 5a143759..6712ccf6 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -73,6 +73,7 @@ exports.minify = function(files, options) {
bare_returns: options.parse ? options.parse.bare_returns : undefined
});
}
+ if (!options.fromString) files = UglifyJS.simple_glob(files);
[].concat(files).forEach(function (files, i) {
if (typeof files === 'string') {
addFile(files, options.fromString ? i : files);