mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
update node modules
This commit is contained in:
6
node_modules/clean-css/lib/options/optimization-level.js
generated
vendored
6
node_modules/clean-css/lib/options/optimization-level.js
generated
vendored
@@ -31,8 +31,7 @@ DEFAULTS[OptimizationLevel.One] = {
|
||||
specialComments: 'all',
|
||||
tidyAtRules: true,
|
||||
tidyBlockScopes: true,
|
||||
tidySelectors: true,
|
||||
transform: noop
|
||||
tidySelectors: true
|
||||
};
|
||||
DEFAULTS[OptimizationLevel.Two] = {
|
||||
mergeAdjacentRules: true,
|
||||
@@ -62,15 +61,12 @@ var LIST_VALUE_SEPARATOR = ',';
|
||||
var OPTION_SEPARATOR = ';';
|
||||
var OPTION_VALUE_SEPARATOR = ':';
|
||||
|
||||
function noop() {}
|
||||
|
||||
function optimizationLevelFrom(source) {
|
||||
var level = override(DEFAULTS, {});
|
||||
var Zero = OptimizationLevel.Zero;
|
||||
var One = OptimizationLevel.One;
|
||||
var Two = OptimizationLevel.Two;
|
||||
|
||||
|
||||
if (undefined === source) {
|
||||
delete level[Two];
|
||||
return level;
|
||||
|
Reference in New Issue
Block a user