forked from matkl/average-color
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
42 lines (36 loc) · 993 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[[headers]]
for = "sw.js"
[headers.values]
Cache-Control = "max-age=0, must-revalidate, public"
[[headers]]
for = "*.webmanifest"
[headers.values]
Cache-Control = "max-age=0, must-revalidate, public"
[[headers]]
for = "average-color.js"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.css"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "*.svg"
[headers.values]
Cache-Control = "public, max-age=604800"
[[plugins]]
package = "netlify-plugin-inline-source"
[plugins.inputs]
attribute = "inline"
compress = true
pretty = false
svgAsImage = false
[[plugins]]
package = "netlify-plugin-minify-html"
[plugins.inputs]
contexts = ["production"] # only minify in production
# https://github.com/kangax/html-minifier#options-quick-reference
[plugins.inputs.minifierOptions]
removeComments = true
minifyJS = true
collapseWhitespace = true