File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
Latest version of this document will always be available on https://github.com/SimenB/add-asset-html-webpack-plugin/releases
6
6
7
7
## [ Unreleased]
8
- Nothing
8
+ - Fix TypeScript definition file
9
+ - Allows an array of options in the plugin constructor
10
+ - Added ` files ` property to options
9
11
10
12
## [ 2.1.1] - 2017-08-16
11
13
### Fixes
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ declare namespace AddAssetHtmlPlugin {
6
6
*/
7
7
filepath : string ;
8
8
9
+ /**
10
+ * Files that the assets will be added to.
11
+ * By default the assets will be included in all files. If files are defined, the
12
+ * assets will only be included in specified file globs.
13
+ */
14
+ files ?: string | string [ ] ;
15
+
9
16
/**
10
17
* If true, will append a unique hash of the file to the filename. This is useful for cache busting.
11
18
* Default false.
@@ -37,7 +44,7 @@ declare namespace AddAssetHtmlPlugin {
37
44
}
38
45
39
46
declare class AddAssetHtmlPlugin {
40
- constructor ( options : AddAssetHtmlPlugin . Options ) ;
47
+ constructor ( options : AddAssetHtmlPlugin . Options | AddAssetHtmlPlugin . Options [ ] ) ;
41
48
apply ( compiler : any ) : void ;
42
49
}
43
50
You can’t perform that action at this time.
0 commit comments