DEV Community

artydev
artydev

Posted on

Astro.build - Compress files

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',
        },
      },
});
Enter fullscreen mode Exit fullscreen mode

Top comments (0)