Skip to content

Commit

Permalink
Merge pull request #186 from felixicaza/compress
Browse files Browse the repository at this point in the history
feat: compress files for producion
  • Loading branch information
odracirdev authored Aug 12, 2024
2 parents 2e684ca + 866bf84 commit b1fce78
Show file tree
Hide file tree
Showing 3 changed files with 494 additions and 23 deletions.
8 changes: 8 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import i18n from '@astrolicious/i18n';
import playformCompress from '@playform/compress';
import { defineConfig } from 'astro/config';

// https://astro.build/config
Expand All @@ -25,5 +26,12 @@ export default defineConfig({
},
},
}),
playformCompress({
HTML: true,
JavaScript: true,
CSS: false,
Image: false,
SVG: true,
}),
],
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrolicious/i18n": "^0.4.3",
"@playform/compress": "^0.1.1",
"@types/node": "^20.12.2",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
Expand Down
Loading

0 comments on commit b1fce78

Please sign in to comment.