Here is how to allow compress files in Astro.
For now this an experimental feature
In Astro config file, put the following code :
import { defineConfig } from 'astro/config';
import compress from "astro-compress";
export default defineConfig({
integrations: [compress()],
vite: {
build: {
assetsInlineLimit: '0',
},
},
});
Top comments (0)