Skip to content

Commit

Permalink
remove purge
Browse files Browse the repository at this point in the history
  • Loading branch information
Naufaldi Rafif authored and Naufaldi Rafif committed Dec 2, 2020
1 parent 87d9451 commit dd18dd3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/Layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Header = () => {
<>
<header
className={
"fixed top-0 w-full z-30 bg-white-500 transition-all" +
"fixed top-0 w-full z-30 bg-white-500 transition-all " +
(scrollActive ? " shadow-md pt-0" : " pt-4")
}
>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"export": "next build && next export"
},
"dependencies": {
"@fullhuman/postcss-purgecss": "^3.0.0",
Expand Down
26 changes: 13 additions & 13 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
const purgecss = [
"@fullhuman/postcss-purgecss",
{
content: [
"./pages/*.js",
"./pages/**/*.js",
"./components/*.js",
"./components/**/*.js",
],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
},
];
// const purgecss = [
// "@fullhuman/postcss-purgecss",
// {
// content: [
// "./pages/*.js",
// "./pages/**/*.js",
// "./components/*.js",
// "./components/**/*.js",
// ],
// defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
// },
// ];
module.exports = {
plugins: [
"postcss-import",
"tailwindcss",
"autoprefixer",
...(process.env.NODE_ENV === "production" ? [purgecss] : []),
// ...(process.env.NODE_ENV === "production" ? [purgecss] : []),
],
};
12 changes: 6 additions & 6 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
purge: [
"./pages/*.js",
"./pages/**/*.js",
"./components/*.js",
"./components/**/*.js",
],
// purge: [
// "./pages/*.js",
// "./pages/**/*.js",
// "./components/*.js",
// "./components/**/*.js",
// ],
theme: {
boxShadow: {
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
Expand Down

1 comment on commit dd18dd3

@vercel
Copy link

@vercel vercel bot commented on dd18dd3 Dec 2, 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.