crossplane / docs

Repo for Crossplane documentation.
https://docs.crossplane.io
Other
49 stars 114 forks source link

Only set Hugo write_stats in Netlify #299

Closed plumbis closed 1 year ago

plumbis commented 1 year ago

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:

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

Fixes

Update the netlify.toml file to add a new command to uncomment the setting for production builds.

plumbis commented 1 year ago

Fixed in #300