Skip to content

Commit 4adc3e4

Browse files
authored
Add hugo caching (#3879)
1 parent 6ab41cf commit 4adc3e4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

netlify.toml

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
[build]
2+
publish = "public"
3+
14
[[plugins]]
5+
package = "netlify-plugin-hugo-cache-resources"
6+
7+
[plugins.inputs]
8+
# If it should show more verbose logs (optional, default = true)
9+
debug = true
10+
# Relative path to source directory in case you use Hugo's "--s" option
11+
srcdir = "public"
212

13+
[[plugins]]
314
# https://github.com/philhawksworth/netlify-plugin-minify-html#readme
415
package = "netlify-plugin-minify-html"
516

@@ -18,3 +29,4 @@
1829
[plugins.inputs.minifierOptions]
1930
removeComments = true
2031
collapseInlineTagWhitespace = true
32+

0 commit comments

Comments
 (0)