Merge branch 'master' into develop

This commit is contained in:
Julian Lam
2017-03-15 14:39:18 -04:00
2 changed files with 7 additions and 1 deletions

View File

@@ -108,6 +108,12 @@ module.exports = function (Meta) {
if (err) {
return cb(err);
}
if (filePath.endsWith('.min.js')) {
minified = { code: buffer.toString() };
return cb();
}
try {
minified = uglifyjs.minify(buffer.toString(), {
fromString: true,