-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnetlify.toml
39 lines (32 loc) · 1.14 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
[build]
base = ""
publish = "public/"
# Default build command.
command = "yarn run build"
[[headers]]
for = "/*"
[headers.values]
cache-control = '''
max-age=0,
no-cache,
no-store,
must-revalidate'''
[[plugins]]
package = "@netlify/plugin-gatsby"
[[plugins]]
package = "netlify-plugin-inline-critical-css"
# All inputs are optional, so you can omit this section.
# Defaults are shown below.
# You can also refer to `critical`’s documentation: https://github.com/addyosmani/critical.
[plugins.inputs]
# Whether to minify the generated critical-path CSS.
minify = true
# Whether to remove the inlined styles from any stylesheets referenced in the HTML. Use with caution. Removing the critical CSS per page results in a unique async loaded CSS file for every page, meaning you can’t rely on cache across multiple pages.
extract = false
# An array of objects containing `width` and `height` to deliver critical CSS for multiple screen resolutions.
[[plugins.inputs.dimensions]]
width = 414
height = 896
[[plugins.inputs.dimensions]]
width = 1920
height = 1080