Skip to content

Commit

Permalink
Turn off purgecss for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdyer committed May 12, 2022
1 parent 9e0f23f commit ea7358d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Fragment } from 'react'
import { Popover, Transition } from '@headlessui/react'
import { MenuIcon, XIcon, AnnotationIcon, GlobeAltIcon, LightningBoltIcon, ScaleIcon } from '@heroicons/react/outline'
import { Image } from 'next/image'

const navigation = [
{ name: 'About', href: '#' },
Expand Down
30 changes: 15 additions & 15 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ module.exports = {
plugins: [
'tailwindcss',
'autoprefixer',
[
"@fullhuman/postcss-purgecss",
process.env.NODE_ENV === "production"
? {
// the paths to all template files
content: [
"./pages/**/*.{js,jsx,ts,tsx}",
"./components/**/*.{js,jsx,ts,tsx}",
],
// function used to extract class names from the templates
defaultExtractor: (content) =>
content.match(/[\w-/:]+(?<!:)/g) || [],
}
: false,
],
// [
// "@fullhuman/postcss-purgecss",
// process.env.NODE_ENV === "production"
// ? {
// // the paths to all template files
// content: [
// "./pages/**/*.{js,jsx,ts,tsx}",
// "./components/**/*.{js,jsx,ts,tsx}",
// ],
// // function used to extract class names from the templates
// defaultExtractor: (content) =>
// content.match(/[\w-/:]+(?<!:)/g) || [],
// }
// : false,
// ],
],
};

2 comments on commit ea7358d

@vercel
Copy link

@vercel vercel bot commented on ea7358d May 12, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on ea7358d May 12, 2022

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.