Skip to content

Commit 6047df2

Browse files
Merge pull request #6945 from amishhaa/plugin
site-config: adding a new plugin to remove unused CSS at build time.
2 parents 94a7430 + 6c592a6 commit 6047df2

File tree

3 files changed

+5887
-3955
lines changed

3 files changed

+5887
-3955
lines changed

gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,12 @@ module.exports = {
628628
policy: [{ userAgent: "*", allow: "/" }],
629629
},
630630
},
631+
{
632+
resolve: "gatsby-plugin-purgecss",
633+
options: {
634+
printRejected: true,
635+
}
636+
},
631637
"gatsby-plugin-meta-redirect",
632638
// make sure this is always the last one
633639
],

0 commit comments

Comments
 (0)