Skip to content

Commit 5cc9813

Browse files
committed
Adding purgeCSS plugin to remove unused CSS
Signed-off-by: amisha <amishhhaaaa@gmail.com>
1 parent ddf04dd commit 5cc9813

3 files changed

Lines changed: 5930 additions & 3997 deletions

File tree

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)