Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
chore: purge again
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-maulana-tkp committed Oct 1, 2020
1 parent 33a5f52 commit 97af15e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const purgecss = [
'@fullhuman/postcss-purgecss',
{
content: ['./components/**/*.{js,ts,tsx}', './pages/**/*.{js,ts,tsx}'],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
},
];
// const purgecss = [
// '@fullhuman/postcss-purgecss',
// {
// content: ['./components/**/*.{js,ts,tsx}', './pages/**/*.{js,ts,tsx}'],
// defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
// },
// ];

module.exports = {
plugins: [
'postcss-import',
'tailwindcss',
...(process.env.NODE_ENV === 'production' ? ['autoprefixer'] : []),
...(process.env.NODE_ENV === 'production' ? [purgecss] : []),
// ...(process.env.NODE_ENV === 'production' ? [purgecss] : []),
],
};
10 changes: 5 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module.exports = {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: false, // purge in postcss.config.js
// purge: {
// layers: ['utilities'],
// content: ['./components/**/*.tsx', './pages/**/*.tsx'],
// },
// purge: false, // purge in postcss.config.js
purge: {
// layers: ['utilities'],
content: ['./components/**/*.{js,ts,tsx}', './pages/**/*.{js,ts,tsx}'],
},
theme: {
extend: {},
},
Expand Down

1 comment on commit 97af15e

@vercel
Copy link

@vercel vercel bot commented on 97af15e Oct 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.