Skip to content

Commit

Permalink
Use the default config for HTML minification.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Feb 27, 2025
1 parent 726af80 commit 20d3bef
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions astro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,8 @@ export default defineConfig({
metaTags(),
robotsTxt(),
compress({
HTML: {
collapseBooleanAttributes: true,
collapseInlineTagWhitespace: true,
collapseWhitespace: true,
decodeEntities: true,
minifyCSS: true,
minifyJS: true,
// minifyURLs: '/', // @todo Make it work
removeAttributeQuotes: true,
removeComments: true,
removeEmptyAttributes: true,
removeOptionalTags: true,
removeRedundantAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
sortAttributes: true,
sortClassName: true,
useShortDoctype: true,
},
CSS: true,
HTML: true,
Image: false,
JavaScript: {
terser: {
Expand Down

0 comments on commit 20d3bef

Please sign in to comment.