the-forest/client/node_modules/clean-css/lib/options/inline.js
2024-09-17 20:35:18 -04:00

16 lines
248 B
JavaScript

function inlineOptionsFrom(rules) {
if (Array.isArray(rules)) {
return rules;
}
if (rules === false) {
return ['none'];
}
return undefined === rules
? ['local']
: rules.split(',');
}
module.exports = inlineOptionsFrom;