Restores astro-compress (#4339)

* Restores astro-compress

* squash!
pull/4233/head^2
Nikola Hristov 1 year ago committed by GitHub
parent 5cff162a94
commit e4d6cd9f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      astro.config.mjs
  2. 2
      package.json

@ -2,7 +2,7 @@
import preact from '@astrojs/preact'; import preact from '@astrojs/preact';
import sitemap from '@astrojs/sitemap'; import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind'; import tailwind from '@astrojs/tailwind';
import compress from '@otterlord/astro-compress'; import compress from 'astro-compress';
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import rehypeExternalLinks from 'rehype-external-links'; import rehypeExternalLinks from 'rehype-external-links';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
@ -72,8 +72,8 @@ export default defineConfig({
serialize: serializeSitemap, serialize: serializeSitemap,
}), }),
compress({ compress({
css: false, CSS: false,
js: false, JavaScript: false,
}), }),
preact(), preact(),
], ],

@ -27,7 +27,7 @@
"@fingerprintjs/fingerprintjs": "^3.4.1", "@fingerprintjs/fingerprintjs": "^3.4.1",
"@nanostores/preact": "^0.5.0", "@nanostores/preact": "^0.5.0",
"astro": "^2.6.6", "astro": "^2.6.6",
"@otterlord/astro-compress": "^1.1.48", "astro-compress": "^2.0.8",
"jose": "^4.14.4", "jose": "^4.14.4",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"nanostores": "^0.9.2", "nanostores": "^0.9.2",

Loading…
Cancel
Save