Skip to content

Commit

Permalink
Remove purgeCSS from postcss config
Browse files Browse the repository at this point in the history
  • Loading branch information
Marjona6 committed Mar 30, 2024
1 parent 7982f01 commit e96e8e2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import postcssImport from 'postcss-import'
import tailwindcss from 'tailwindcss'
import autoprefixer from 'autoprefixer'
import purgecss from '@fullhuman/postcss-purgecss'
// import purgecss from '@fullhuman/postcss-purgecss'

export default {
plugins: [
postcssImport,
tailwindcss,
autoprefixer,
...(process.env.NODE_ENV === 'production'
? [
purgecss({
content: ['./index.html', './src/**/*.tsx', './pages/**/*.tsx'],
defaultExtractor: (content) =>
content.match(/[A-Za-z0-9-_:/]+/g) || [], // Specify the default extractor for PurgeCSS
}),
]
: []),
// ...(process.env.NODE_ENV === 'production'
// ? [
// purgecss({
// content: ['./index.html', './src/**/*.tsx', './pages/**/*.tsx'],
// defaultExtractor: (content) =>
// content.match(/[A-Za-z0-9-_:/]+/g) || [], // Specify the default extractor for PurgeCSS
// }),
// ]
// : []),
],
}

0 comments on commit e96e8e2

Please sign in to comment.