MOON
Server: Apache
System: Linux 54-179-220-51.cprapid.com 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
User: thehunarfound (1001)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/thehunarfound/public_html/DMSold/node_modules/postcss-discard-empty/dist/index.js
'use strict';

exports.__esModule = true;

var _postcss = require('postcss');

function discardAndReport(css, result) {
    function discardEmpty(node) {
        var type = node.type;
        var sub = node.nodes;


        if (sub) {
            node.each(discardEmpty);
        }

        if (type === 'decl' && !node.value || type === 'rule' && !node.selector || sub && !sub.length || type === 'atrule' && (!sub && !node.params || !node.params && !sub.length)) {
            node.remove();

            result.messages.push({
                type: 'removal',
                plugin: 'postcss-discard-empty',
                node: node
            });
        }
    }

    css.each(discardEmpty);
}

exports.default = (0, _postcss.plugin)('postcss-discard-empty', function () {
    return function (css, result) {
        return discardAndReport(css, result);
    };
});
module.exports = exports['default'];;;