UNPKG

postcss-advanced-variables-mod

Version:

Use Sass-like variables, conditionals, and iterators in CSS

8 lines (7 loc) 238 B
export default function manageUnresolved(node, opts, word, message) { if ('warn' === opts.unresolved) { node.warn(opts.result, message, { word }); } else if ('ignore' !== opts.unresolved) { throw node.error(message, { word }); } }