Skip to content

Commit

Permalink
feat: compress content (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phaired authored Oct 28, 2024
1 parent 2da9b31 commit fcd61a9
Show file tree
Hide file tree
Showing 3 changed files with 499 additions and 37 deletions.
41 changes: 27 additions & 14 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,32 @@ import mdx from '@astrojs/mdx';

import sitemap from '@astrojs/sitemap';


// https://astro.build/config
export default defineConfig({
site: 'https://remybarranco.fr',
integrations: [mdx(), sitemap()],
markdown: {
remarkPlugins: [
'remark-math',
],
rehypePlugins: [
['rehype-katex', {
trust: true
// Katex plugin options
}]
]
}
});
site: 'https://remybarranco.fr',
integrations: [mdx(), sitemap(), (await import("astro-compress")).default({
CSS: true,
HTML: {
"html-minifier-terser": {
removeAttributeQuotes: false,
},
},
Image: false,
JavaScript: true,
SVG: false,
}),
],

markdown: {
remarkPlugins: [
'remark-math',
],
rehypePlugins: [
['rehype-katex', {
trust: true
// Katex plugin options
}]
]
}
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"word-count": "^0.2.2"
},
"devDependencies": {
"astro-compress": "^2.3.5",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1"
}
Expand Down
Loading

0 comments on commit fcd61a9

Please sign in to comment.