File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,13 @@ module.exports = {
64
64
modulePath : `${ __dirname } /src/cms/cms.js` ,
65
65
} ,
66
66
} ,
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
68
74
'gatsby-plugin-netlify' , // make sure to keep it last in the array
69
75
] ,
70
76
}
Original file line number Diff line number Diff line change 9
9
"gatsby-image" : " ^2.0.23" ,
10
10
"gatsby-plugin-netlify" : " ^2.0.6" ,
11
11
"gatsby-plugin-netlify-cms" : " ^3.0.9" ,
12
- "gatsby-plugin-purgecss" : " ^3.0 .0" ,
12
+ "gatsby-plugin-purgecss" : " ^3.1 .0" ,
13
13
"gatsby-plugin-react-helmet" : " ^3.0.4" ,
14
14
"gatsby-plugin-sass" : " ^2.0.7" ,
15
15
"gatsby-plugin-sharp" : " ^2.0.15" ,
Original file line number Diff line number Diff line change @@ -5076,9 +5076,9 @@ gatsby-plugin-page-creator@^2.0.5:
5076
5076
parse-filepath "^1.0.1"
5077
5077
slash "^1.0.0"
5078
5078
5079
- gatsby-plugin-purgecss@^3.0 .0 :
5080
- version "3.0 .0"
5081
- resolved "https://registry.yarnpkg.com/gatsby-plugin-purgecss/-/gatsby-plugin-purgecss-3.0 .0.tgz#3d9ab151f6b8098053e272a461f2d3680c89a291 "
5079
+ gatsby-plugin-purgecss@^3.1 .0 :
5080
+ version "3.1 .0"
5081
+ resolved "https://registry.yarnpkg.com/gatsby-plugin-purgecss/-/gatsby-plugin-purgecss-3.1 .0.tgz#ecaf5266317ef3deba94478f341f2855f58a3a74 "
5082
5082
dependencies :
5083
5083
fs-extra "^7.0.0"
5084
5084
loader-utils "^1.1.0"
You can’t perform that action at this time.
0 commit comments