Skip to content

Commit

Permalink
Add astro-compress dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Jan 27, 2024
1 parent d7d7233 commit 108bdd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import icon from 'astro-icon';
import compress from 'astro-compress';
import tasks from './src/utils/tasks';

import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin } from './src/utils/frontmatter.mjs';
Expand Down Expand Up @@ -59,6 +60,19 @@ export default defineConfig({
})
),

compress({
CSS: true,
HTML: {
'html-minifier-terser': {
removeAttributeQuotes: false,
},
},
Image: false,
JavaScript: true,
SVG: false,
Logger: 1,
}),

tasks(),
],

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@onwidget/astrowind",
"description": "AstroWind: A free template using Astro 4.0 and Tailwind CSS. Astro starter theme.",
"version": "1.0.0-beta.15",
"version": "1.0.0-beta.16",
"private": true,
"scripts": {
"dev": "astro dev",
Expand Down Expand Up @@ -35,6 +35,7 @@
"@types/lodash.merge": "^4.6.9",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"astro-compress": "^2.2.8",
"eslint": "^8.56.0",
"eslint-plugin-astro": "^0.31.3",
"eslint-plugin-jsx-a11y": "^6.8.0",
Expand Down

0 comments on commit 108bdd6

Please sign in to comment.