Skip to content

Commit 13d2fa0

Browse files
committed
purge-css improvements
1 parent 7edfb01 commit 13d2fa0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gatsby-config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ module.exports = {
6464
modulePath: `${__dirname}/src/cms/cms.js`,
6565
},
6666
},
67-
'gatsby-plugin-purgecss', // must be after other CSS plugins
67+
{
68+
resolve:'gatsby-plugin-purgecss', // purges all unused/unreferenced css rules
69+
options: {
70+
develop: true, // Activates purging in npm run develop
71+
purgeOnly: ['/all.sass'], // applies purging only on the bulma css file
72+
},
73+
}, // must be after other CSS plugins
6874
'gatsby-plugin-netlify', // make sure to keep it last in the array
6975
],
7076
}

0 commit comments

Comments
 (0)