forked from zeon-studio/astroplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetlify.toml
More file actions
executable file
·30 lines (26 loc) · 899 Bytes
/
netlify.toml
File metadata and controls
executable file
·30 lines (26 loc) · 899 Bytes
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
[build]
functions = "netlify/functions"
[context.production]
publish = "dist"
command = "./netlify-build-setup.sh && npm run build"
[context.branch-deploy]
publish = "dist"
command = "./netlify-build-setup.sh && npm run build_branch"
[build.environment]
NODE_VERSION = "22"
# 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 = [
'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