Skip to content

Commit

Permalink
feat: css optimization through cssnano
Browse files Browse the repository at this point in the history
  • Loading branch information
EATSTEAK committed Jun 30, 2024
1 parent 9a0c493 commit 1347e49
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 4 deletions.
6 changes: 5 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import { transformerNotationDiff, transformerNotationHighlight, transformerNotat
// https://astro.build/config
export default defineConfig({
site: "https://eatsteak.dev",
integrations: [mdx(), sitemap(), solidJs(), tailwind(), compress({
integrations: [mdx(), sitemap(), solidJs(),
tailwind({
applyBaseStyles: false,
}),
compress({
CSS: false,
})],
markdown: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@solid-primitives/set": "^0.4.11",
"astro": "4.11.0",
"astro-compress": "^2.2.28",
"cssnano": "^7.0.3",
"satori": "^0.10.13",
"sharp": "^0.33.4",
"solid-js": "^1.8.17",
Expand Down
5 changes: 5 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
require("cssnano"),
]
};
Loading

0 comments on commit 1347e49

Please sign in to comment.