UNPKG

stylehacks

Version:

Detect/remove browser hacks from CSS files.

16 lines (13 loc) 332 B
'use strict'; /** * @param {import('postcss').Rule} node * @return {boolean} */ module.exports = 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; };