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/).
55Latest version of this document will always be available on https://github.com/SimenB/add-asset-html-webpack-plugin/releases
66
77## [ Unreleased]
8- Nothing
8+ - Fix TypeScript definition file
9+ - Allows an array of options in the plugin constructor
10+ - Added ` files ` property to options
911
1012## [ 2.1.1] - 2017-08-16
1113### Fixes
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ declare namespace AddAssetHtmlPlugin {
66 */
77 filepath : string ;
88
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+
916 /**
1017 * If true, will append a unique hash of the file to the filename. This is useful for cache busting.
1118 * Default false.
@@ -37,7 +44,7 @@ declare namespace AddAssetHtmlPlugin {
3744}
3845
3946declare class AddAssetHtmlPlugin {
40- constructor ( options : AddAssetHtmlPlugin . Options ) ;
47+ constructor ( options : AddAssetHtmlPlugin . Options | AddAssetHtmlPlugin . Options [ ] ) ;
4148 apply ( compiler : any ) : void ;
4249}
4350
You can’t perform that action at this time.
0 commit comments