mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 20:40:07 +02:00
update packages to latest version
This commit is contained in:
14
node_modules/clean-css/lib/optimizer/level-1/value-optimizers/unit.js
generated
vendored
14
node_modules/clean-css/lib/optimizer/level-1/value-optimizers/unit.js
generated
vendored
@@ -7,7 +7,7 @@ var plugin = {
|
||||
return value;
|
||||
}
|
||||
|
||||
return value.replace(WHOLE_PIXEL_VALUE, function (match, val) {
|
||||
return value.replace(WHOLE_PIXEL_VALUE, function(match, val) {
|
||||
var newValue;
|
||||
var intVal = parseInt(val);
|
||||
|
||||
@@ -15,15 +15,21 @@ var plugin = {
|
||||
return match;
|
||||
}
|
||||
|
||||
if (options.compatibility.properties.shorterLengthUnits && options.compatibility.units.pt && intVal * 3 % 4 === 0) {
|
||||
if (options.compatibility.properties.shorterLengthUnits
|
||||
&& options.compatibility.units.pt
|
||||
&& intVal * 3 % 4 === 0) {
|
||||
newValue = intVal * 3 / 4 + 'pt';
|
||||
}
|
||||
|
||||
if (options.compatibility.properties.shorterLengthUnits && options.compatibility.units.pc && intVal % 16 === 0) {
|
||||
if (options.compatibility.properties.shorterLengthUnits
|
||||
&& options.compatibility.units.pc
|
||||
&& intVal % 16 === 0) {
|
||||
newValue = intVal / 16 + 'pc';
|
||||
}
|
||||
|
||||
if (options.compatibility.properties.shorterLengthUnits && options.compatibility.units.in && intVal % 96 === 0) {
|
||||
if (options.compatibility.properties.shorterLengthUnits
|
||||
&& options.compatibility.units.in
|
||||
&& intVal % 96 === 0) {
|
||||
newValue = intVal / 96 + 'in';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user