Sha256: 59227df6f04b12690e7d9c76ba82b166c7b38e61f04cf6ecb10dbe8a8c3c57b7
Contents?: true
Size: 617 Bytes
Versions: 28
Compression:
Stored size: 617 Bytes
Contents
module.exports = function compressFontWeight(node) { var value = node.children.head.data; if (value.type === 'Identifier') { switch (value.name) { case 'normal': node.children.head.data = { type: 'Number', loc: value.loc, value: '400' }; break; case 'bold': node.children.head.data = { type: 'Number', loc: value.loc, value: '700' }; break; } } };
Version data entries
28 entries across 27 versions & 9 rubygems