HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/burst-statistics/includes/Admin/App/postcss.config.mjs
import tailwindcss from '@tailwindcss/postcss';
import postcssLightningcss from 'postcss-lightningcss';
import removeCascadeLayers from './postcss-remove-layers.mjs';

/*
 * Downlevel modern CSS (oklch(), color-mix(), range media queries, @property,
 * native nesting) to syntax that older CSS parsers understand. This is not
 * about real browser coverage — modern browsers handle the original output
 * fine — but about CSS-rewriting middleware on the client side: HTTPS-scanning
 * antivirus suites (Kaspersky, ESET, Bitdefender, ...) and corporate proxies
 * (ZScaler, BlueCoat, ...) ship outdated minifiers that can drop the rest of a
 * stylesheet on the first unrecognised at-rule, causing the dashboard to
 * render unstyled. Targets are deliberately a few years behind the actual
 * browser support matrix so lightningcss emits the legacy syntax.
 */
const downlevelTargets =
    'chrome >= 100, firefox >= 100, safari >= 15, edge >= 100';

export default {
    plugins: [
        tailwindcss(),
        removeCascadeLayers(),
        postcssLightningcss({
            browsers: downlevelTargets,
        }),
    ],
};