-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassetresizer.config.js
91 lines (89 loc) · 1.84 KB
/
assetresizer.config.js
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
83
84
85
86
87
88
89
90
91
/** @type {import('asset-resizer').AssetResizerConfig} */
// Include `assetresizer.config.js` in your project's root directory.
// Alternative extensions `.mjs` and `.cjs` supported as well.
// alt: module.exports = {
export default {
baseUrl: ".",
inputDir: "assets",
outputDir: "build",
flatten: true,
assets: [
{
file: "app/manifest.json",
output: [
{
file: "manifest.json",
copy: true,
},
],
},
{
file: "300x300.svg",
output: [
{
file: "300x300.svg",
copy: true,
},
{
file: "50x50.png",
width: 50,
},
{
file: "150x150.png",
width: 150,
},
{
file: "200x100.png",
width: 200,
height: 100,
},
{
file: "200x100-cover.png",
width: 200,
height: 100,
fit: "cover",
},
{
file: "200x100-contain.png",
width: 200,
height: 100,
fit: "contain",
},
{
file: "200x100-fill.png",
width: 200,
height: 100,
fit: "fill",
},
{
file: "200x100-inside.png",
width: 200,
height: 100,
fit: "inside",
},
{
file: "200x100-outside.png",
width: 200,
height: 100,
fit: "outside",
},
],
},
{
file: "subdir/500x400.svg",
output: [
{
file: "icon.jpg",
width: 256,
fit: "cover",
},
{
file: "large.jpg",
width: 800,
height: 600,
fit: "outside",
},
],
},
],
};