/
iliyagladkov
/
to-do-react
Обзор
Документация
Войти
/
iliyagladkov
/
to-do-react
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/csso/lib/replace/Value.js
20 строк
569 B
Iliya
Final
18 фев 2023, 15:04
18 фев 2023, 15:04
fae6815
Код
Авторство
О чём код?
var resolveName = require('css-tree').property; var handlers = { 'font': require('./property/font'), 'font-weight': require('./property/font-weight'), 'background': require('./property/background'), 'border': require('./property/border'), 'outline': require('./property/border') }; module.exports = function compressValue(node) { if (!this.declaration) { return; } var property = resolveName(this.declaration.property); if (handlers.hasOwnProperty(property.basename)) { handlers[property.basename](node); } };