1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-02 20:00:05 +02:00

use minify

This commit is contained in:
s2
2019-04-15 10:35:12 +02:00
parent 9528e1e8e1
commit 86e1333c3e
9417 changed files with 70210 additions and 462173 deletions

10
node_modules/acorn-globals/index.js generated vendored
View File

@@ -61,7 +61,7 @@ function findGlobals(source, options) {
break;
case 'ObjectPattern':
node.properties.forEach(function (node) {
declarePattern(node.value, parent);
declarePattern(node.value || node.argument, parent);
});
break;
case 'ArrayPattern':
@@ -105,7 +105,9 @@ function findGlobals(source, options) {
}
}
parent.locals = parent.locals || {};
parent.locals[node.id.name] = true;
if (node.id) {
parent.locals[node.id.name] = true;
}
declareFunction(node);
},
'Function': declareFunction,
@@ -117,7 +119,9 @@ function findGlobals(source, options) {
}
}
parent.locals = parent.locals || {};
parent.locals[node.id.name] = true;
if (node.id) {
parent.locals[node.id.name] = true;
}
},
'TryStatement': function (node) {
if (node.handler === null) return;