@@ -10,6 +10,17 @@ declare class HtmlWebpackPlugin {
10
10
apply ( compiler : Compiler ) : void ;
11
11
12
12
static getHooks ( compilation : compilation . Compilation ) : HtmlWebpackPlugin . Hooks ;
13
+
14
+ /**
15
+ * Static helper to create a tag object to be get injected into the dom
16
+ */
17
+ static createHtmlTagObject (
18
+ tagName : string ,
19
+ attributes ?: { [ attributeName : string ] : string | boolean } ,
20
+ innerHTML ?: string
21
+ ) : HtmlTagObject ;
22
+
23
+ static readonly version : number ;
13
24
}
14
25
15
26
declare namespace HtmlWebpackPlugin {
@@ -23,7 +34,7 @@ declare namespace HtmlWebpackPlugin {
23
34
interface ProcessedOptions {
24
35
/**
25
36
* Emit the file only if it was changed.
26
- * Default: ` true`.
37
+ * @default true
27
38
*/
28
39
cache : boolean ;
29
40
/**
@@ -32,14 +43,14 @@ declare namespace HtmlWebpackPlugin {
32
43
chunks : "all" | string [ ] ;
33
44
/**
34
45
* Allows to control how chunks should be sorted before they are included to the html.
35
- * Default: ` 'auto'`.
46
+ * @default 'auto'
36
47
*/
37
48
chunksSortMode :
38
49
| "auto"
39
50
| "manual"
40
51
| ( ( ( entryNameA : string , entryNameB : string ) => number ) ) ;
41
52
/**
42
- * List all entries which should not be injeccted
53
+ * List all entries which should not be injected
43
54
*/
44
55
excludeChunks : string [ ] ;
45
56
/**
@@ -48,8 +59,8 @@ declare namespace HtmlWebpackPlugin {
48
59
favicon : false | string ;
49
60
/**
50
61
* The file to write the HTML to.
51
- * Defaults to `index.html`.
52
62
* Supports subdirectories eg: `assets/admin.html`
63
+ * @default 'index.html'
53
64
*/
54
65
filename : string ;
55
66
/**
@@ -70,7 +81,7 @@ declare namespace HtmlWebpackPlugin {
70
81
* blocking will result in <script src="..."></script>
71
82
* defer will result in <script defer src="..."></script>
72
83
*
73
- * The default behaviour is blocking
84
+ * @ default ' blocking'
74
85
*/
75
86
scriptLoading :
76
87
| "blocking"
@@ -87,11 +98,11 @@ declare namespace HtmlWebpackPlugin {
87
98
| { [ attributeName : string ] : string | boolean } ; // custom properties e.g. { name:"viewport" content:"width=500, initial-scale=1" }
88
99
} ;
89
100
/**
90
- * HTML Minification options accepts the following valeus :
101
+ * HTML Minification options accepts the following values :
91
102
* - Set to `false` to disable minifcation
92
103
* - Set to `'auto'` to enable minifcation only for production mode
93
104
* - Set to custom minification according to
94
- * @ https ://github.com/kangax/html-minifier#options-quick-reference
105
+ * { @link https://github.com/kangax/html-minifier#options-quick-reference}
95
106
*/
96
107
minify : 'auto' | boolean | MinifyOptions ;
97
108
/**
0 commit comments