forked from jamstack/jamstack.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
66 lines (52 loc) · 1.41 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[build]
command = "npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "12.16.2"
NODE_ENV = "production"
[dev]
command = "npm run start"
publish = "dist"
[[redirects]]
from = "/conference"
to = "https://jamstackconf.com/"
status = 302
[[redirects]]
from = "/slack"
to = "https://join.slack.com/t/jamstack/shared_invite/zt-fpqaceec-SZuiLEa7YdLUXHAXrWPWgQ"
status = 302
[[redirects]]
from = "/best-practices"
to = "/resources"
status = 301
[[redirects]]
from = "/diversity"
to = "/code-of-conduct"
status = 301
[[redirects]]
from = "/benefits"
to = "/why-jamstack"
status = 301
[[redirects]]
from = "/glossary/*"
to = "/glossary/contribute/index.html"
status = 404
[[plugins]]
package = "./plugins/keep-dot-cache-folder"
# Config for the Netlify Build Plugin: netlify-plugin-minify-html
[[plugins]]
package = "netlify-plugin-minify-html"
# Specify which deploy contexts we'll minify HTML in.
# Supports any Deploy Contexts available in Netlify.
# https://docs.netlify.com/site-deploys/overview/#deploy-contexts
[plugins.inputs]
contexts = [
'production',
'branch-deploy',
'deploy-preview'
]
# Optionally, override the default options for the minification
# https://github.com/kangax/html-minifier#options-quick-reference
[plugins.inputs.minifierOptions]
removeComments = true
collapseInlineTagWhitespace = false