mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
update node modules
This commit is contained in:
19
node_modules/clean-css/lib/optimizer/level-1/value-optimizers/degrees.js
generated
vendored
Normal file
19
node_modules/clean-css/lib/optimizer/level-1/value-optimizers/degrees.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var ZERO_DEG_PATTERN = /\(0deg\)/g;
|
||||
|
||||
var plugin = {
|
||||
level1: {
|
||||
value: function degrees(_name, value, options) {
|
||||
if (!options.compatibility.properties.zeroUnits) {
|
||||
return value;
|
||||
}
|
||||
|
||||
if (value.indexOf('0deg') == -1) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return value.replace(ZERO_DEG_PATTERN, '(0)');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = plugin;
|
Reference in New Issue
Block a user