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:
34
node_modules/clean-css/lib/options/rounding-precision.js
generated
vendored
34
node_modules/clean-css/lib/options/rounding-precision.js
generated
vendored
@@ -13,21 +13,21 @@ function roundingPrecisionFrom(source) {
|
||||
|
||||
function defaults(value) {
|
||||
return {
|
||||
'ch': value,
|
||||
'cm': value,
|
||||
'em': value,
|
||||
'ex': value,
|
||||
'in': value,
|
||||
'mm': value,
|
||||
'pc': value,
|
||||
'pt': value,
|
||||
'px': value,
|
||||
'q': value,
|
||||
'rem': value,
|
||||
'vh': value,
|
||||
'vmax': value,
|
||||
'vmin': value,
|
||||
'vw': value,
|
||||
ch: value,
|
||||
cm: value,
|
||||
em: value,
|
||||
ex: value,
|
||||
in: value,
|
||||
mm: value,
|
||||
pc: value,
|
||||
pt: value,
|
||||
px: value,
|
||||
q: value,
|
||||
rem: value,
|
||||
vh: value,
|
||||
vmax: value,
|
||||
vmin: value,
|
||||
vw: value,
|
||||
'%': value
|
||||
};
|
||||
}
|
||||
@@ -63,12 +63,12 @@ function buildPrecisionFrom(source) {
|
||||
|
||||
return source
|
||||
.split(DIRECTIVES_SEPARATOR)
|
||||
.reduce(function (accumulator, directive) {
|
||||
.reduce(function(accumulator, directive) {
|
||||
var directiveParts = directive.split(DIRECTIVE_VALUE_SEPARATOR);
|
||||
var name = directiveParts[0];
|
||||
var value = parseInt(directiveParts[1]);
|
||||
|
||||
if (isNaN(value) || value == -1) {
|
||||
if (Number.isNaN(value) || value == -1) {
|
||||
value = DEFAULT_PRECISION;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user