-
Notifications
You must be signed in to change notification settings - Fork 1
/
blunt.config.cjs
50 lines (50 loc) · 943 Bytes
/
blunt.config.cjs
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
module.exports = [
{
input: "./src/raw-images/bg",
output: "./static/images/optimized/bg",
sizes: [
{
width: 1400,
prefix: "bg",
},
],
// See: https://sharp.pixelplumbing.com/api-resize
},
{
input: "./src/raw-images/projects",
output: "./static/images/optimized/projects",
preserveFileStructure: true,
sizes: [
{
width: 600,
prefix: "lg",
},
{
width: 300,
prefix: "sm",
},
{
width: 150,
prefix: "xs",
},
],
sharpOptions: {
withoutEnlargement: true,
}
// See: https://sharp.pixelplumbing.com/api-resize
},
{
input: "./src/raw-images/profile",
output: "./static/images/optimized/profile",
includeOriginal: true,
sizes: [
{
width: 400,
prefix: 'sm'
}
],
sharpOptions: {
withoutEnlargement: true,
}
}
];