PlayForm / Compress

🗜️ Compress —

Home Page:https://NPMJS.Org/@playform/compress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch compress off on development mode

rdwz opened this issue · comments

commented

for better debugging switch it off in dev mode
import.meta.env.MODE === "production" ? compress() : compress({html: false}) },

Neat, I'll pin this issue as the user can configure this in their astro.config.ts file.

Hi, @rdwz, compress will not get triggered in either case, because the website is always rendered from vite SSR if using dev, unless you modify that variable explicitly through a NODE environment variable.