mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
feat(netlify): use netlify-plugin-hugo-cache-resources plugin
This commit is contained in:
parent
e728263d13
commit
52a9ec9825
1 changed files with 9 additions and 4 deletions
|
@ -7,8 +7,7 @@
|
|||
|
||||
[context.production]
|
||||
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}/"
|
||||
|
||||
[context.production.environment]
|
||||
[context.production.environment]
|
||||
HUGO_ENV = "production"
|
||||
|
||||
[context.branch-deploy]
|
||||
|
@ -16,3 +15,9 @@
|
|||
|
||||
[context.deploy-preview]
|
||||
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 a new issue