chore: ignore errors when CSS files don't need compression

This commit is contained in:
saicaca 2024-07-26 23:06:55 +08:00
parent f817e930ec
commit 442cb8fe97
1 changed files with 7 additions and 3 deletions

View File

@ -53,11 +53,15 @@ export default defineConfig({
"fa6-solid": ["*"],
},
}),
Compress({
Image: false,
}),
svelte(),
sitemap(),
Compress({
CSS: false,
Image: false,
Action: {
Passed: async () => true, // https://github.com/PlayForm/Compress/issues/376
},
}),
],
markdown: {
remarkPlugins: [remarkMath, remarkReadingTime, remarkGithubAdmonitionsToDirectives, remarkDirective, parseDirectiveNode],