diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-17 23:21:14 +0300 |
---|---|---|
committer | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-17 23:21:14 +0300 |
commit | c597c208a819e42d05f9e07c9b336790156c5756 (patch) | |
tree | c30c790f6548aab6130165da0557100fe08459f2 /netlify.toml | |
parent | bad33e19aea83c92e18ea9ebe9871d94063c98c0 (diff) |
ci(netlify): add resources cache
Modified https://github.com/cdeleeuwe/netlify-plugin-hugo-cache-resources, set cache dir to `exampleSite/resources`
Diffstat (limited to 'netlify.toml')
-rw-r--r-- | netlify.toml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/netlify.toml b/netlify.toml index 55ebd33..89f501b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -14,4 +14,7 @@ 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/plugins/netlify-plugin-hugo-cache-resources"
\ No newline at end of file |