diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-06 14:35:55 +0300 |
---|---|---|
committer | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-06 14:35:55 +0300 |
commit | 52a9ec9825a10e580efda95967d3eb0a74265a2b (patch) | |
tree | 761570d1355c6223972790bf977572970eb925a1 /netlify.toml | |
parent | e728263d13fecb9d9ad3dd204fb794e22695e902 (diff) |
feat(netlify): use netlify-plugin-hugo-cache-resources plugin
Diffstat (limited to 'netlify.toml')
-rw-r--r-- | netlify.toml | 13 |
1 files 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 |