feat(netlify): use netlify-plugin-hugo-cache-resources plugin
This commit is contained in:
parent
e728263d13
commit
52a9ec9825
11
netlify.toml
11
netlify.toml
@ -7,12 +7,17 @@
|
|||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}/"
|
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}/"
|
||||||
|
[context.production.environment]
|
||||||
[context.production.environment]
|
HUGO_ENV = "production"
|
||||||
HUGO_ENV = "production"
|
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}/"
|
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}/"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}/"
|
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}/"
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-hugo-cache-resources"
|
||||||
|
[plugins.inputs]
|
||||||
|
# If it should show more verbose logs (optional, default = true)
|
||||||
|
debug = true
|
Loading…
Reference in New Issue
Block a user