HTML minifier too aggressive with whitespaces
gw2princeps opened this issue · comments
Without collapseWhitespace: true
the website doesn't get minified at all. You can put an
before the web component or style it using CSS. Alternatively, you can disable the whitespace collapse by setting:
// @ts-nocheck
import { defineConfig } from "astro/config";
import compress from "astro-compress";
export default defineConfig({
integrations: [
compress({
html: {
collapseWhitespace: false,
},
}),
],
});