UNPKG

cssnano

Version:

A modular CSS minifier, built on top of the PostCSS ecosystem.

16 lines (13 loc) • 324 B
/** * @param {import('postcss').Rule} node * @return {boolean} */ function isMixin(node) { const { selector } = node; // If the selector ends with a ':' it is likely a part of a custom mixin. if (!selector || selector[selector.length - 1] === ':') { return true; } return false; } export default isMixin;