-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
82 lines (63 loc) · 2.29 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# https://docs.netlify.com/configure-builds/file-based-configuration
# Settings in the [build] context are global and are applied to
# all contexts unless otherwise overridden by more specific contexts.
[build]
publish = "_site/"
# command = "jekyll build"
command = "npm run build-netlify"
[build.processing]
# If skip_processing = true, all other settings are ignored
skip_processing = true
[build.processing.css]
# no bundling because Netlify was breaking our stuff!
bundle = false
# we are already minifying it ourselves
minify = false
[build.processing.js]
# no bundling because Netlify was breaking our stuff!
bundle = false
# we are already minifying it ourselves
minify = false
[build.processing.images]
# `false` because Netlify seemed to be messing with img's width and height
compress = false
# Will we need this?
# [build.processing.html]
# pretty_urls = true
# https://github.com/netlify-labs/netlify-plugin-lighthouse
[[plugins]]
# Installs the Lighthouse Build Plugin for all deploy contexts
package = "@netlify/plugin-lighthouse"
# optional, fails build when a category is below a threshold
[plugins.inputs.thresholds]
performance = 0.9
accessibility = 0.85
best-practices = 0.9
seo = 0.9
# TODO: track "Address reported error due to canonical link differences"
# https://github.com/netlify-labs/netlify-plugin-lighthouse/issues/403
# https://github.com/netlify-labs/netlify-plugin-lighthouse/pull/45
# TODO: improve this? currently, it seems we need to add each route manually
#
# maybe improve this by configuring the underlying lighthouse itself?
# https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md
[[plugins.inputs.audits]]
path = ""
[[plugins.inputs.audits]]
path = "about"
[[plugins.inputs.audits]]
path = "archive"
[[plugins.inputs.audits]]
path = "features"
[[plugins.inputs.audits]]
path = "features/sidenotes"
[[plugins.inputs.audits]]
path = "features/math-katex"
[[plugins.inputs.audits]]
path = "features/svg-icons"
[[plugins.inputs.audits]]
path = "features/image-and-video"
[[plugins.inputs.audits]]
path = "features/code-highlighting"
[[plugins.inputs.audits]]
path = "features/basic-html-elements"