aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
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);