Nikola Hristov
Nikola Hristov
Hi, can you provide a minimum viable reproduction, maybe on [Stackblitz](https://stackblitz.com/) or [CodeSandbox](https://codesandbox.io/)?
`astro-purgecss` could be removing some of your CSS, have you tried running without it?
Should be fixed in the latest `astro-compress` [v2.2.23](https://github.com/PlayForm/Compress/releases/tag/AstroCompress%2Fv2.2.23) and `@playform/compress` [v0.0.4](https://github.com/PlayForm/Compress/releases/tag/Compress%2Fv0.0.4)
@bngmnn This should've been fixed in [v2.2.17](https://github.com/Playform/AstroCompress/releases/tag/v2.2.17) @JeremyJames Can you share some of the images you're trying to compress ? I would like to debug.
We found the culprit in https://github.com/lovell/sharp/issues/3935#issuecomment-1881866341. Cache will be disabled in `v2.2.18`
@JeremyJames Should be fixed in [v2.2.19](https://github.com/Playform/AstroCompress/releases/tag/v2.2.19)
Can you share a bit of code on how you're running the `` component and `` component maybe ? I'm trying all sorts of combinations but I can't get it...
```ts compress({ Exclude: [(File: string) => File.indexOf("_image") !== -1], }); ``` And also does this 👆🏻 help ? ```ts compress({ Exclude: [ (File: string) => { console.log(File); return false; },...
We don't compress in dev. `CompressAstro` hooks into the `astro:build:done` hook and only runs on build.
So, there's a `PR` available https://github.com/withastro/astro/pull/10616 in favor of disabling the `sharp` `libvips` image cache. Maybe it helps. I hope it gets merged and this gets resolved soon.