Skip to content

Commit

Permalink
fix: compresser cannot process css
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraHikari committed Oct 6, 2024
1 parent 55677f0 commit 0292948
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 2 deletions.
8 changes: 7 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ export default defineConfig({
'ri': ['*'],
'simple-icons': ['*'],
},
}), playformCompress()],
}), playformCompress({
CSS: false,
Image: false,
Action: {
Passed: async () => true, // https://github.com/PlayForm/Compress/issues/376
},
})],
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"build": "rimraf ./dist && astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"deploy": "astro build && wrangler pages deploy"
Expand All @@ -30,6 +30,7 @@
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"rimraf": "^6.0.1",
"wrangler": "^3.80.0"
}
}
58 changes: 58 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0292948

Please sign in to comment.