Remove variable purging from purgecss
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 29s

This commit is contained in:
2025-09-10 09:37:51 +02:00
parent 6f0b2fd016
commit 88b9beb19f
8 changed files with 319 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
// postcss.config.js
import { purgeCSSPlugin } from '@fullhuman/postcss-purgecss'
import glob from 'glob-all'
import path from 'path'
import postcssApply from 'postcss-apply'
import postcssEasing from 'postcss-easings'
import postcssImport from 'postcss-import'
@@ -25,15 +27,13 @@ const plugins = [
]
if (process.env.NODE_ENV === 'production') {
console.log('Adding PurgeCSS')
plugins.push(
purgeCSSPlugin({
content: [
'./src/**/*.{html,js,jsx,ts,tsx,css}',
'./content/**/*.{md,mdx}',
],
content: glob.sync([
path.join(process.cwd(), 'src/**/*.{js,jsx,ts,tsx}'),
path.join(process.cwd(), 'content/**/*.{md,mdx}'),
]),
safelist: ['html', 'body'],
variables: true,
})
)
}