-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpages.mjs
More file actions
57 lines (57 loc) · 2.02 KB
/
Copy pathpages.mjs
File metadata and controls
57 lines (57 loc) · 2.02 KB
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
/**
* Page build configuration
*
* Defines which build jobs each page requires for each platform.
* - 'copy': Copy public/ to build output
* - 'build-js': Build JS/CSS from src/index.js and src/inline.js
* - 'build-css': Build CSS only from src/index.css
* - 'inline-html': Inline assets into HTML for single-file distribution
*/
export const pages = {
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
duckplayer: {
integration: ['copy', 'build-js'],
windows: ['copy', 'build-js'],
apple: ['copy', 'build-js', 'inline-html'],
android: ['copy', 'build-js'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
errorpage: {
integration: ['copy', 'build-css'],
apple: ['copy', 'build-css', 'inline-html'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
onboarding: {
integration: ['copy', 'build-js'],
windows: ['copy', 'build-js'],
apple: ['copy', 'build-js'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
example: {
integration: ['copy', 'build-js'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
'release-notes': {
integration: ['copy', 'build-js'],
apple: ['copy', 'build-js'],
windows: ['copy', 'build-js'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
'special-error': {
integration: ['copy', 'build-js'],
apple: ['copy', 'build-js', 'inline-html'],
windows: ['copy', 'build-js', 'inline-html'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
'new-tab': {
integration: ['copy', 'build-js'],
windows: ['copy', 'build-js'],
apple: ['copy', 'build-js'],
},
/** @type {Partial<Record<ImportMeta['injectName'], string[]>>} */
history: {
integration: ['copy', 'build-js'],
windows: ['copy', 'build-js'],
apple: ['copy', 'build-js'],
},
};