Enable asset optimization ()

This commit is contained in:
Jonah Aragon 2023-03-01 09:38:32 -06:00
parent e336699480
commit d63dc04aff
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

1
Brewfile.netlify Normal file
View File

@ -0,0 +1 @@
brew "pngquant"

View File

@ -66,11 +66,11 @@ plugins:
macros: {}
meta: {}
git-committers:
enabled: !ENV [PRODUCTION, false]
enabled: !ENV [NETLIFY, false]
repository: privacyguides/privacyguides.org
branch: main
git-revision-date-localized:
enabled: !ENV [PRODUCTION, false]
enabled: !ENV [NETLIFY, false]
exclude:
- index.md
fallback_to_build_date: true
@ -78,6 +78,8 @@ plugins:
external_assets_exclude:
- cdn.jsdelivr.net/npm/mathjax@3/*
- api.privacyguides.net/*
optimize:
enabled: !ENV [NETLIFY, false]
markdown_extensions:
admonition: {}

View File

@ -2,9 +2,6 @@
publish = "site/"
command = "mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.he.yml && mkdocs build --config-file config/mkdocs.fr.yml && mkdocs build --config-file config/mkdocs.nl.yml && mv _redirects site/"
[context.production.environment]
PRODUCTION = "true"
[[headers]]
for = "/*"
[headers.values]