-
Notifications
You must be signed in to change notification settings - Fork 22
/
options.ts
47 lines (45 loc) · 856 Bytes
/
options.ts
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
/**
* HtmlTemplate Plugin options.
*/
export interface Options {
/**
* page dir
* @default 'src/pages'
*/
pagesDir: string
/**
* pages options
* @see {@link https://cli.vuejs.org/config/#pages}
*/
pages: {
[pageName: string]: {
/**
* @default public/index.html
*/
template?: string
/**
* @default 'Home Page'
*/
title?: string
/**
* @default SPA => 'main'; MPA => 'src/pages/${pageName}/main'
*/
entry?: string
/**
* @default '${pageName}/index.html' at dest
* not implements and have no idea
*/
filename?: string
}
}
/**
* data expose to template.
* @default {}
*/
data: Record<string, any>
/**
* @default '/src/main'
*/
entry?: string
}
export type UserOptions = Partial<Options>