mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-24 15:09:38 -05:00
Enable asset optimization (#2061)
This commit is contained in:
parent
e336699480
commit
d63dc04aff
1
Brewfile.netlify
Normal file
1
Brewfile.netlify
Normal file
@ -0,0 +1 @@
|
|||||||
|
brew "pngquant"
|
@ -66,11 +66,11 @@ plugins:
|
|||||||
macros: {}
|
macros: {}
|
||||||
meta: {}
|
meta: {}
|
||||||
git-committers:
|
git-committers:
|
||||||
enabled: !ENV [PRODUCTION, false]
|
enabled: !ENV [NETLIFY, false]
|
||||||
repository: privacyguides/privacyguides.org
|
repository: privacyguides/privacyguides.org
|
||||||
branch: main
|
branch: main
|
||||||
git-revision-date-localized:
|
git-revision-date-localized:
|
||||||
enabled: !ENV [PRODUCTION, false]
|
enabled: !ENV [NETLIFY, false]
|
||||||
exclude:
|
exclude:
|
||||||
- index.md
|
- index.md
|
||||||
fallback_to_build_date: true
|
fallback_to_build_date: true
|
||||||
@ -78,6 +78,8 @@ plugins:
|
|||||||
external_assets_exclude:
|
external_assets_exclude:
|
||||||
- cdn.jsdelivr.net/npm/mathjax@3/*
|
- cdn.jsdelivr.net/npm/mathjax@3/*
|
||||||
- api.privacyguides.net/*
|
- api.privacyguides.net/*
|
||||||
|
optimize:
|
||||||
|
enabled: !ENV [NETLIFY, false]
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
admonition: {}
|
admonition: {}
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
publish = "site/"
|
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/"
|
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]]
|
[[headers]]
|
||||||
for = "/*"
|
for = "/*"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
|
Loading…
Reference in New Issue
Block a user