PlayForm / Compress

🗜️ Compress —
https://NPMJS.Org/@playform/compress
MIT License
479 stars 12 forks source link

Media Queries: Range Syntax conflict #367

Closed abdo-spices closed 3 months ago

abdo-spices commented 3 months ago

when file css get compressed it remove css media Query block Completely

@media screen and (width <= 868px) { .wtq-sidebar { position: absolute; z-index: 1; transform: translateX(-100%); } }

to

NikolaRHristov commented 3 months ago

You can try disabling either lightningcss or csso:

export default (await import("astro/config")).defineConfig({
    integrations: [
        (await import("@playform/compress")).default({
            CSS: {
                // @ts-expect-error
                lightningcss: false,

                // or

                // @ts-expect-error
                csso: false,
            },
        }),
    ],
}) as typeof defineConfig;

import type { defineConfig } from "astro/config";
abdo-spices commented 3 months ago

no i want css optimization

NikolaRHristov commented 3 months ago

Can you try disabling one of the two so we can narrow it down ? lightningcss was recently introduced and could be causing this.