mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 04:40:05 +02:00
update packages to latest version
This commit is contained in:
26
node_modules/clean-css/lib/optimizer/level-2/remove-unused-at-rules.js
generated
vendored
26
node_modules/clean-css/lib/optimizer/level-2/remove-unused-at-rules.js
generated
vendored
@@ -5,9 +5,9 @@ var restoreFromOptimizing = require('../restore-from-optimizing');
|
||||
|
||||
var Token = require('../../tokenizer/token');
|
||||
|
||||
var animationNameRegex = /^(\-moz\-|\-o\-|\-webkit\-)?animation-name$/;
|
||||
var animationRegex = /^(\-moz\-|\-o\-|\-webkit\-)?animation$/;
|
||||
var keyframeRegex = /^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /;
|
||||
var animationNameRegex = /^(-moz-|-o-|-webkit-)?animation-name$/;
|
||||
var animationRegex = /^(-moz-|-o-|-webkit-)?animation$/;
|
||||
var keyframeRegex = /^@(-moz-|-o-|-webkit-)?keyframes /;
|
||||
var importantRegex = /\s{0,31}!important$/;
|
||||
var optionalMatchingQuotesRegex = /^(['"]?)(.*)\1$/;
|
||||
|
||||
@@ -59,11 +59,11 @@ function markUsedAtRules(tokens, markCallback, atRules, context) {
|
||||
|
||||
for (i = 0, l = tokens.length; i < l; i++) {
|
||||
switch (tokens[i][0]) {
|
||||
case Token.RULE:
|
||||
boundMarkCallback(tokens[i], context);
|
||||
break;
|
||||
case Token.NESTED_BLOCK:
|
||||
markUsedAtRules(tokens[i][2], markCallback, atRules, context);
|
||||
case Token.RULE:
|
||||
boundMarkCallback(tokens[i], context);
|
||||
break;
|
||||
case Token.NESTED_BLOCK:
|
||||
markUsedAtRules(tokens[i][2], markCallback, atRules, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ function matchCounterStyle(token, atRules) {
|
||||
}
|
||||
|
||||
function markCounterStylesAsUsed(atRules) {
|
||||
return function (token, context) {
|
||||
return function(token, context) {
|
||||
var property;
|
||||
var wrappedProperty;
|
||||
var i, l;
|
||||
@@ -125,7 +125,7 @@ function matchFontFace(token, atRules) {
|
||||
}
|
||||
|
||||
function markFontFacesAsUsed(atRules) {
|
||||
return function (token, context) {
|
||||
return function(token, context) {
|
||||
var property;
|
||||
var wrappedProperty;
|
||||
var component;
|
||||
@@ -176,7 +176,7 @@ function matchKeyframe(token, atRules) {
|
||||
}
|
||||
|
||||
function markKeyframesAsUsed(atRules) {
|
||||
return function (token, context) {
|
||||
return function(token, context) {
|
||||
var property;
|
||||
var wrappedProperty;
|
||||
var component;
|
||||
@@ -222,9 +222,9 @@ function matchNamespace(token, atRules) {
|
||||
}
|
||||
|
||||
function markNamespacesAsUsed(atRules) {
|
||||
var namespaceRegex = new RegExp(Object.keys(atRules).join('\\\||') + '\\\|', 'g');
|
||||
var namespaceRegex = new RegExp(Object.keys(atRules).join('\\||') + '\\|', 'g');
|
||||
|
||||
return function (token) {
|
||||
return function(token) {
|
||||
var match;
|
||||
var scope;
|
||||
var normalizedMatch;
|
||||
|
Reference in New Issue
Block a user