katoikia-app/web-ui/web-react/node_modules/clean-css/lib/options/inline.js

16 lines
248 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
function inlineOptionsFrom(rules) {
if (Array.isArray(rules)) {
return rules;
}
if (rules === false) {
return ['none'];
}
return undefined === rules ?
['local'] :
rules.split(',');
}
module.exports = inlineOptionsFrom;