Remove variable purging from purgecss
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 29s
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 29s
This commit is contained in:
@@ -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,
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user