mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
fix: netlify build configuration
This commit is contained in:
parent
f619e451e0
commit
4a8eae5099
@ -6,16 +6,10 @@
|
|||||||
# HUGO_THEME = "repo"
|
# HUGO_THEME = "repo"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = "hugo --gc --themesDir ../.. -b ${URL}"
|
command = "hugo --gc --minify -b ${URL}"
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.branch-deploy]
|
|
||||||
command = "hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
|
|
||||||
|
|
||||||
[context.deploy-preview]
|
|
||||||
command = "hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
|
|
||||||
|
|
||||||
[[plugins]]
|
[[plugins]]
|
||||||
package = "netlify-plugin-hugo-cache-resources"
|
package = "netlify-plugin-hugo-cache-resources"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user