-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Naufaldi Rafif
authored and
Naufaldi Rafif
committed
Dec 2, 2020
1 parent
87d9451
commit dd18dd3
Showing
4 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] : []), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd18dd3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: