Fixed overeager purgecss
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 54s

This commit is contained in:
2025-09-10 00:19:07 +02:00
parent 693eb1ee23
commit 6f0b2fd016

View File

@@ -28,7 +28,10 @@ if (process.env.NODE_ENV === 'production') {
console.log('Adding PurgeCSS')
plugins.push(
purgeCSSPlugin({
content: ['./src/**/*.{html,js,jsx,ts,tsx}', './content/**/*.{md,mdx}'],
content: [
'./src/**/*.{html,js,jsx,ts,tsx,css}',
'./content/**/*.{md,mdx}',
],
safelist: ['html', 'body'],
variables: true,
})