Closed plumbis closed 1 year ago
Hugo write_stats is enabled in the Hugo config. This is used for PurgeCSS, which is only used in production builds.
write_stats
This is a huge bottleneck for local development causing builds to be 6-8x slower.
Enabled:
hugo ✔ Start building sites … hugo v0.109.0-47b12b83e636224e5e601813ff3e6790c191e371+extended darwin/arm64 BuildDate=2022-12-23T10:38:11Z VendorInfo=gohugoio | EN -------------------+------ Pages | 188 Paginator pages | 0 Non-page files | 86 Static files | 141 Processed images | 18 Aliases | 0 Sitemaps | 1 Cleaned | 0 Total in 7865 ms
Disabled:
hugo ✔ Start building sites … hugo v0.109.0-47b12b83e636224e5e601813ff3e6790c191e371+extended darwin/arm64 BuildDate=2022-12-23T10:38:11Z VendorInfo=gohugoio | EN -------------------+------ Pages | 188 Paginator pages | 0 Non-page files | 86 Static files | 141 Processed images | 18 Aliases | 0 Sitemaps | 1 Cleaned | 0 Total in 1049 ms
Update the netlify.toml file to add a new command to uncomment the setting for production builds.
Fixed in #300
Hugo
write_stats
is enabled in the Hugo config. This is used for PurgeCSS, which is only used in production builds.This is a huge bottleneck for local development causing builds to be 6-8x slower.
Enabled:
Disabled:
Fixes
Update the netlify.toml file to add a new command to uncomment the setting for production builds.