/
var
/
www
/
flurhymez
/
node_modules
/
csso
/
lib
/
replace
/
property
/
/var/www/flurhymez/node_modules/csso/lib/replace/property
mkdir
upload
Name
Size
Mode
Actions
background.js
1641
0644
edit
dl
rm
border.js
968
0644
edit
dl
rm
font-weight.js
617
0644
edit
dl
rm
font.js
1271
0644
edit
dl
rm
Edit:
/var/www/flurhymez/node_modules/csso/lib/replace/property/border.js
(968B)
function removeItemAndRedundantWhiteSpace(list, item) { var prev = item.prev; var next = item.next; if (next !== null) { if (next.data.type === 'WhiteSpace' && (prev === null || prev.data.type === 'WhiteSpace')) { list.remove(next); } } else if (prev !== null && prev.data.type === 'WhiteSpace') { list.remove(prev); } list.remove(item); } module.exports = function compressBorder(node) { node.children.each(function(node, item, list) { if (node.type === 'Identifier' && node.name.toLowerCase() === 'none') { if (list.head === list.tail) { // replace `none` for zero when `none` is a single term item.data = { type: 'Number', loc: node.loc, value: '0' }; } else { removeItemAndRedundantWhiteSpace(list, item); } } }); };
Save
cmd:
run