-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnetlify.toml
29 lines (26 loc) · 875 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
[build]
command = "npm run build"
publish = ".next"
functions = "functions"
[[plugins]]
# https://github.com/philhawksworth/netlify-plugin-minify-html#readme
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 = true
collapseWhitespace = true
minifyCSS = true
minifyJS = true
sortAttributes = true
sortClassName = true