Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
refactor: loss weight on compression plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Apr 14, 2023
1 parent 9d6828d commit 68cc101
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 186 deletions.
8 changes: 2 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'astro/config'

/* Astro plugins */
import compress from 'astro-compress'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import prefetch from '@astrojs/prefetch'
import html from 'astro-html-terser'

/* Remark plugins */
import { iframeParser } from './src/modules/remark/iframeParser.mjs'
Expand All @@ -23,11 +23,7 @@ export default defineConfig({
applyBaseStyles: false,
},
}),
compress({
img: false,
svg: false,
js: true,
}),
html(),
prefetch(),
],
markdown: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@tailwindcss/typography": "^0.5.9",
"@types/sharp": "^0.31.1",
"astro": "^2.2.3",
"astro-compress": "^1.1.35",
"astro-html-terser": "^1.0.1",
"blurhash": "^2.0.5",
"dayjs": "^1.11.7",
"dotenv": "^16.0.3",
Expand Down
198 changes: 19 additions & 179 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68cc101

Please sign in to comment.