Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
18
Frontend-Learner/node_modules/csso/cjs/clean/Declaration.cjs
generated
vendored
Normal file
18
Frontend-Learner/node_modules/csso/cjs/clean/Declaration.cjs
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
const cssTree = require('css-tree');
|
||||
|
||||
function cleanDeclartion(node, item, list) {
|
||||
if (node.value.children && node.value.children.isEmpty) {
|
||||
list.remove(item);
|
||||
return;
|
||||
}
|
||||
|
||||
if (cssTree.property(node.property).custom) {
|
||||
if (/\S/.test(node.value.value)) {
|
||||
node.value.value = node.value.value.trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = cleanDeclartion;
|
||||
Loading…
Add table
Add a link
Reference in a new issue