From 52a9ec9825a10e580efda95967d3eb0a74265a2b Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 6 Sep 2020 13:35:55 +0200 Subject: [PATCH] feat(netlify): use netlify-plugin-hugo-cache-resources plugin --- netlify.toml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index 0839200..a085826 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,12 +7,17 @@ [context.production] command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}/" - -[context.production.environment] - HUGO_ENV = "production" + [context.production.environment] + HUGO_ENV = "production" [context.branch-deploy] command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}/" [context.deploy-preview] - command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}/" \ No newline at end of file + 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 \ No newline at end of file