html-webpack-plugin 5.5.0 → 5.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,6 +85,7 @@ The `html-webpack-plugin` provides [hooks](https://github.com/jantimon/html-webp
85
85
  * [webpack-concat-plugin](https://github.com/hxlniada/webpack-concat-plugin) for concat and uglify files that needn't to be webpack bundles(for legacy files) and inject to html-webpack-plugin.
86
86
  * [html-webpack-link-type-plugin](https://github.com/steadyapp/html-webpack-link-type-plugin) adds a configurable mimetype to resources injected as links (such as adding type="text/css" to external stylesheets) for compatibility with "strict mode".
87
87
  * [csp-html-webpack-plugin](https://github.com/slackhq/csp-html-webpack-plugin) to add [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) meta tags to the HTML output
88
+ * [strict-csp-html-webpack-plugin](https://github.com/google/strict-csp/tree/main/strict-csp-html-webpack-plugin) to add a [**strict** Content-Security-Policy (CSP)](https://web.dev) as a `meta` tag to the HTML output. A strict CSP is specifically efficient against XSS attacks.
88
89
  * [webpack-nomodule-plugin](https://github.com/swimmadude66/webpack-nomodule-plugin) allows you to add a `nomodule` attribute to specific injected scripts, which prevents the scripts from being loaded by newer browsers. Good for limiting loads of polyfills.
89
90
  * [html-webpack-skip-assets-plugin](https://github.com/swimmadude66/html-webpack-skip-assets-plugin) Skip adding certain output files to the html file. Built as a drop-in replacement for [html-webpack-exclude-assets-plugin](https://www.npmjs.com/package/html-webpack-exclude-assets-plugin) and works with newer [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) versions
90
91
  * [html-webpack-inject-preload](https://github.com/principalstudio/html-webpack-inject-preload) allows to add preload links <link rel='preload'> anywhere you want.
package/lib/errors.js CHANGED
@@ -1,13 +1,22 @@
1
1
  // @ts-nocheck
2
2
  'use strict';
3
- const PrettyError = require('pretty-error');
4
- const prettyError = new PrettyError();
5
- prettyError.withoutColors();
6
- prettyError.skipPackage('html-plugin-evaluation');
7
- prettyError.skipNodeFiles();
8
- prettyError.skip(function (traceLine) {
9
- return traceLine.path === 'html-plugin-evaluation';
10
- });
3
+
4
+ let prettyError;
5
+
6
+ function getPrettyError () {
7
+ if (!prettyError) {
8
+ // lazily require to improve startup time since pretty-error is rather heavy package
9
+ const PrettyError = require('pretty-error');
10
+ prettyError = new PrettyError();
11
+ prettyError.withoutColors();
12
+ prettyError.skipPackage('html-plugin-evaluation');
13
+ prettyError.skipNodeFiles();
14
+ prettyError.skip(function (traceLine) {
15
+ return traceLine.path === 'html-plugin-evaluation';
16
+ });
17
+ }
18
+ return prettyError;
19
+ }
11
20
 
12
21
  module.exports = function (err, context) {
13
22
  return {
@@ -19,7 +28,7 @@ module.exports = function (err, context) {
19
28
  },
20
29
  toString: function () {
21
30
  try {
22
- return prettyError.render(err).replace(/webpack:\/\/\/\./g, context);
31
+ return getPrettyError().render(err).replace(/webpack:\/\/\/\./g, context);
23
32
  } catch (e) {
24
33
  // This can sometimes fail. We don't know why, but returning the
25
34
  // original error is better than returning the error thrown by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-webpack-plugin",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "license": "MIT",
5
5
  "description": "Simplifies creation of HTML files to serve your webpack bundles",
6
6
  "author": "Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)",
@@ -43,8 +43,8 @@
43
43
  "semistandard": "^13.0.1",
44
44
  "standard-version": "^9.3.0",
45
45
  "style-loader": "2.0.0",
46
- "typescript": "4.1.3",
47
- "webpack": "5.24.3",
46
+ "typescript": "4.9.4",
47
+ "webpack": "^5.79.0",
48
48
  "webpack-cli": "4.5.0",
49
49
  "webpack-recompilation-simulator": "3.2.0"
50
50
  },
package/CHANGELOG.md DELETED
@@ -1,747 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [5.5.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.4.0...v5.5.0) (2021-10-25)
6
-
7
-
8
- ### Features
9
-
10
- * Support type=module via scriptLoading option ([1e42625](https://github.com/jantimon/html-webpack-plugin/commit/1e4262528ff02a83e1fc7739b42472680fd205c2)), closes [#1663](https://github.com/jantimon/html-webpack-plugin/issues/1663)
11
-
12
- ### [5.4.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.3.2...v5.3.3) (2021-10-15)
13
-
14
- ### Features
15
-
16
- * update terser ([9c7fba0](https://github.com/jantimon/html-webpack-plugin/pull/1688)
17
-
18
- ### [5.3.2](https://github.com/jantimon/html-webpack-plugin/compare/v5.3.1...v5.3.2) (2021-06-22)
19
-
20
- ### Bug Fixes
21
-
22
- * update lodash and pretty error ([9c7fba0](https://github.com/jantimon/html-webpack-plugin/commit/9c7fba02d0aa7d9e804863a66eb896db3046f645)
23
-
24
- ### [5.3.1](https://github.com/jantimon/html-webpack-plugin/compare/v5.3.0...v5.3.1) (2021-03-09)
25
-
26
-
27
- ### Bug Fixes
28
-
29
- * remove loader-utils from plugin core ([82d0ee8](https://github.com/jantimon/html-webpack-plugin/commit/82d0ee8ddf146f17d71e98c1b44b2f2ec7420051))
30
-
31
- ## [5.3.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.2.0...v5.3.0) (2021-03-07)
32
-
33
-
34
- ### Features
35
-
36
- * allow to modify the interpolation options in webpack config ([d654f5b](https://github.com/jantimon/html-webpack-plugin/commit/d654f5b90022304335b372d424ff4c08d3a9d341))
37
- * drop loader-utils dependency ([41d7a50](https://github.com/jantimon/html-webpack-plugin/commit/41d7a50516aefd1af2704e3837d5d41351c6199b))
38
-
39
- ## [5.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.1.0...v5.2.0) (2021-02-19)
40
-
41
-
42
- ### Features
43
-
44
- * improve ssr ([73d2a66](https://github.com/jantimon/html-webpack-plugin/commit/73d2a660b10b9ebf8a341f0ddb173bcaaf1e513c))
45
-
46
- ## [5.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.0.0...v5.1.0) (2021-02-12)
47
-
48
-
49
- ### Features
50
-
51
- * omit html tag attribute with null/undefined/false value ([aa6e78d](https://github.com/jantimon/html-webpack-plugin/commit/aa6e78d1430c17d9cf05550b2c9f73a9a0c0166c)), closes [#1598](https://github.com/jantimon/html-webpack-plugin/issues/1598)
52
-
53
- ## [5.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.5.1...v5.0.0) (2021-02-03)
54
-
55
-
56
- ### ⚠ BREAKING CHANGES
57
-
58
- * Drop support for `webpack` 4 and `node` <= 10 - For older webpack or node versions please use `html-webpack-plugin` 4.x
59
- * Entry javascript resources are now beeing loaded deferred in the `<head>` tag to improve the page load performance by default - You can set the `scriptLoading` option to `'blocking'` to keep the previous behaviour
60
- * Setting publicPath to `''` (an empty string) will no longer calculate a relative path from the html file to the assets anymore - You can set the `publicPath` option to `'auto'` to keep the previous behaviour
61
- * Plugins for `html-webpack-plugin` which add additional assetTags should provide a `meta` attribute
62
- * Drop support for `appcache-webpack-plugin`
63
-
64
- ### Features
65
-
66
- * drop `webpack` 4 and `node` <= 10 support to make use of the latest APIs ([b7a9e8f](https://github.com/jantimon/html-webpack-plugin/commit/b7a9e8f2a3c146cfec8f5c42888abd6aa0cde0b9))
67
- * use the new webpack 5 APIs and create html files during the new `webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS` compilation stage ([8964bc4](https://github.com/jantimon/html-webpack-plugin/commit/8964bc4182e41807a564d3000217a40bc5f93ad2), [b6895cb](https://github.com/jantimon/html-webpack-plugin/commit/b6895cb5b85b1e6e850f638470cf9b839d421516), [a97234e](https://github.com/jantimon/html-webpack-plugin/commit/a97234ead5ea2dbba07a6e6a70c5ddb6a5a3c288), [1b59e09](https://github.com/jantimon/html-webpack-plugin/commit/1b59e0944f561b264f11847ef245c9fc3f05b80f), [4fca596](https://github.com/jantimon/html-webpack-plugin/commit/4fca5965315c49f6706812d9fdf6c7284d23d75b), [ed64a6b](https://github.com/jantimon/html-webpack-plugin/commit/ed64a6b35fe9cdbc610e9b766700f3b2fc2b8e4c), [86245db](https://github.com/jantimon/html-webpack-plugin/commit/86245db670a9b3bdd0e2aba9f2031745a98434c7), [50b3bec](https://github.com/jantimon/html-webpack-plugin/commit/50b3bec51a43289d6d1b4e1e6439560eb791576f), [c697725](https://github.com/jantimon/html-webpack-plugin/commit/c697725e9f4dd990bd4b7927bbfa7b826d2f36f2))
68
- * allow generating one file per chunk with the new `'[name]'` placeholder for the `filename` option ([cd5bd2a](https://github.com/jantimon/html-webpack-plugin/commit/cd5bd2afc902bbe5a5ceec4756ef634a26aa1332), [3d9ff48](https://github.com/jantimon/html-webpack-plugin/commit/3d9ff48543d04d9f7c3440bfefb43751775a9e81))
69
- * the `filename` option can now be a function ([c5beb4b](https://github.com/jantimon/html-webpack-plugin/commit/c5beb4bd16e4916b5355c300abebf9d7d3c587da))
70
- * add support for `'auto'` public paths inside templates ([a059fcf](https://github.com/jantimon/html-webpack-plugin/commit/a059fcf32d94aaaa738359cedce0b0e4af68f0de), [b09b439](https://github.com/jantimon/html-webpack-plugin/commit/b09b439f50ecb75994acde2eb2967ad690ff1cf0))
71
- * use defer as default script loading mechanism ([35b6b87](https://github.com/jantimon/html-webpack-plugin/commit/35b6b878db17f0f5704a187b336a14fdd58cedfc))
72
- * allow to set publicPath to an empty string `''` ([5ea7de4](https://github.com/jantimon/html-webpack-plugin/commit/5ea7de4ba271813835be700316c8a1763b205d2d))
73
- * improve typings ([197ddd8](https://github.com/jantimon/html-webpack-plugin/commit/197ddd88f39a2e6e70863b6fed2385d33043d137))
74
- * provide public path to the alterAssetTagGroups hook ([1b54dfb](https://github.com/jantimon/html-webpack-plugin/commit/1b54dfbd62c0d0df10dd3d2be9937626142d518f))
75
- * provide public path to the alterAssetTags hook ([b754626](https://github.com/jantimon/html-webpack-plugin/commit/b75462653d11803a428b1d29479e259c3010163f))
76
- * use `thisCompilation` in child compiler for faster builds ([1d59e9a](https://github.com/jantimon/html-webpack-plugin/commit/1d59e9a71ddba1429168c42569a7bd9bdd363f4f))
77
- * export new major in static property ([8b692bd](https://github.com/jantimon/html-webpack-plugin/commit/8b692bd7cc0b75ddf55f47da317eed9bd19dab91))
78
- * reduce dependencies ([8c28aaa](https://github.com/jantimon/html-webpack-plugin/commit/8c28aaa2bed5a7147b397fef3801cfe8fb5c34b9), [56e633f](https://github.com/jantimon/html-webpack-plugin/commit/56e633fcb90909c2bbedbd63590ecaa825d8b31f))
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * emit files on every build to work properly with plugins like the
84
- clean-webpack-plugin ([6b3d087](https://github.com/jantimon/html-webpack-plugin/commit/6b3d087cf17f63b596c298d70a42a7462dd0f881))
85
- * generate html files even if no webpack entry exists ([2693dfa](https://github.com/jantimon/html-webpack-plugin/commit/2693dfaf4c94625eab86afadfd0e4d8822092d6b))
86
- * keep binary format when adding assets ([7e2b208](https://github.com/jantimon/html-webpack-plugin/commit/7e2b208634e26299c509e0c6b3189e01e4c3d3df)), closes [#1537](https://github.com/jantimon/html-webpack-plugin/issues/1537)
87
-
88
- ### [4.5.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.5.0...v4.5.1) (2021-01-03)
89
-
90
-
91
- ### Bug Fixes
92
-
93
- * inject javascripts in the <head> tag for inject:true and scriptLoading:'defer' ([4f7064e](https://github.com/jantimon/html-webpack-plugin/commit/4f7064ee56fe710e8f416018956647a72c270fb1))
94
-
95
- # [4.5.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.4.1...v4.5.0) (2020-09-21)
96
-
97
-
98
- ### Features
99
-
100
- * Add publicPath option to overrule the default path generation ([#1516](https://github.com/jantimon/html-webpack-plugin/issues/1516)) ([19b5122](https://github.com/jantimon/html-webpack-plugin/commit/19b5122))
101
- * update webpack dependency range to allow installing webpack 5 beta ([f3ccdd5](https://github.com/jantimon/html-webpack-plugin/commit/f3ccdd5)), closes [#1504](https://github.com/jantimon/html-webpack-plugin/issues/1504)
102
-
103
-
104
-
105
- ## [4.4.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.4.0...v4.4.1) (2020-08-30)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * broken typings.d.ts in v4.4.0 ([#1503](https://github.com/jantimon/html-webpack-plugin/issues/1503)) ([98ad756](https://github.com/jantimon/html-webpack-plugin/commit/98ad756))
111
-
112
-
113
-
114
- # [4.4.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.3.0...v4.4.0) (2020-08-30)
115
-
116
-
117
- ### Bug Fixes
118
-
119
- * fix typos in comments ([#1484](https://github.com/jantimon/html-webpack-plugin/issues/1484)) ([6b0711e](https://github.com/jantimon/html-webpack-plugin/commit/6b0711e))
120
-
121
-
122
- ### Features
123
-
124
- * added v5 compilation support and deleted depreciation warnings ([4ae7be8](https://github.com/jantimon/html-webpack-plugin/commit/4ae7be8)), closes [#1454](https://github.com/jantimon/html-webpack-plugin/issues/1454)
125
-
126
-
127
-
128
- # [4.3.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.2...v4.3.0) (2020-04-30)
129
-
130
-
131
- ### Features
132
-
133
- * Allow to use console.log inside templates ([c3f2fdc](https://github.com/jantimon/html-webpack-plugin/commit/c3f2fdc))
134
-
135
-
136
-
137
- ## [4.2.2](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.1...v4.2.2) (2020-04-30)
138
-
139
-
140
- ### Bug Fixes
141
-
142
- * Prevent "cannot read property info of undefined" when reading meta information from assets ([253ce30](https://github.com/jantimon/html-webpack-plugin/commit/253ce30))
143
- * use modern icon tag rel attribute for favicons ([c40dd85](https://github.com/jantimon/html-webpack-plugin/commit/c40dd85))
144
-
145
-
146
-
147
- ## [4.2.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.0...v4.2.1) (2020-04-28)
148
-
149
-
150
- ### Bug Fixes
151
-
152
- * don't add dependencies twice to the webpack 5 watcher api ([ceafe14](https://github.com/jantimon/html-webpack-plugin/commit/ceafe143650749a5f53a14411dc1b762e252ec44))
153
- * prevent scripts marked as hotModuleReplacement from being added to the html file ([119252a](https://github.com/jantimon/html-webpack-plugin/commit/119252a381bf43dea37c1be64f90c10bebc21302))
154
-
155
-
156
-
157
- # [4.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.1.0...v4.2.0) (2020-04-09)
158
-
159
-
160
- ### Features
161
-
162
- * Add template content ([#1401](https://github.com/jantimon/html-webpack-plugin/issues/1401)) ([4740bf7](https://github.com/jantimon/html-webpack-plugin/commit/4740bf7))
163
-
164
-
165
-
166
- # [4.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.4...v4.1.0) (2020-04-09)
167
-
168
-
169
- ### Features
170
-
171
- * Add webpack 5 support ([39c38a4](https://github.com/jantimon/html-webpack-plugin/commit/39c38a4))
172
- * Allow webpack 5 as peer dependency ([9c571e2](https://github.com/jantimon/html-webpack-plugin/commit/9c571e2))
173
-
174
-
175
-
176
- ## [4.0.4](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.3...v4.0.4) (2020-04-01)
177
-
178
-
179
- ### Bug Fixes
180
-
181
- * Fix querystring encoding ([#1386](https://github.com/jantimon/html-webpack-plugin/issues/1386)) ([4f48a39](https://github.com/jantimon/html-webpack-plugin/commit/4f48a39e5738a5d431be2bec39c1b1f0de800d57)), closes [#1355](https://github.com/jantimon/html-webpack-plugin/issues/1355)
182
-
183
-
184
-
185
- ## [4.0.3](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.2...v4.0.3) (2020-03-28)
186
-
187
-
188
- ### Bug Fixes
189
-
190
- * add webpack, tapable and html-minifier-terser as dependencies because of types.d.ts ([238da81](https://github.com/jantimon/html-webpack-plugin/commit/238da8123950f87267954fd448f3e6b0fb1ead17))
191
-
192
-
193
-
194
- ## [4.0.2](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.1...v4.0.2) (2020-03-26)
195
-
196
-
197
- ### Bug Fixes
198
-
199
- * don't remove trailing slashes from self closing tags by default ([2281e4b](https://github.com/jantimon/html-webpack-plugin/commit/2281e4bfda9b91c4a83d63bfc8df8372d1e6ae9e))
200
-
201
-
202
-
203
- ## [4.0.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.0...v4.0.1) (2020-03-23)
204
-
205
-
206
- ### Bug Fixes
207
-
208
- * update typedefs to match with html-minifier-terser ([2698c7e](https://github.com/jantimon/html-webpack-plugin/commit/2698c7e45a7f12113a07b256dc400ec89666130d))
209
-
210
-
211
-
212
- # [4.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.2.0...v4.0.0) (2020-03-23)
213
-
214
- The summary can be found in the [**release blog post**](https://dev.to/jantimon/html-webpack-plugin-4-has-been-released-125d).
215
-
216
- ### Bug Fixes
217
-
218
- * Add dependencies from the child compilation to the main compilation ([27c3e72](https://github.com/jantimon/html-webpack-plugin/commit/27c3e727b073701bfc739859d8325435d27cbf35))
219
- * Add typing for assets(Close jantimon[#1243](https://github.com/jantimon/html-webpack-plugin/issues/1243)) ([9fef060](https://github.com/jantimon/html-webpack-plugin/commit/9fef0603eb532b3e6a1e8871b4568e62f9bba1a3))
220
- * allow `contenthash` along with `templatehash` ([049d4d3](https://github.com/jantimon/html-webpack-plugin/commit/049d4d3436092b8beff3f5745e77b20f1c168c4c)), closes [#1033](https://github.com/jantimon/html-webpack-plugin/issues/1033)
221
- * Catch and ignore pretty-error errors ([2056139](https://github.com/jantimon/html-webpack-plugin/commit/2056139a9533ff9487506531491c0e5a94003607)), closes [#921](https://github.com/jantimon/html-webpack-plugin/issues/921)
222
- * Drop @types/webpack dependency ([d4eb1c7](https://github.com/jantimon/html-webpack-plugin/commit/d4eb1c749316af3964126606fe6c70a233c30fef))
223
- * Ignore foreign child compilers ([1422664](https://github.com/jantimon/html-webpack-plugin/commit/14226649aa1bbaf7b174bcacafdbe47d8ba6c851))
224
- * Improve perfomance for appcache files ([b94e043](https://github.com/jantimon/html-webpack-plugin/commit/b94e0434f5dbb06ee2179e91ebaa2ce7801937e0))
225
- * load script files before style files files in defer script loading mode ([97f9fb9](https://github.com/jantimon/html-webpack-plugin/commit/97f9fb9a68e4d3c3c9453296c352e831f7546937))
226
- * Prevent chunks from beeing added multiple times ([d65b37d](https://github.com/jantimon/html-webpack-plugin/commit/d65b37d2c588047e0d81a38f4645fcdb3ead0b9e))
227
- * Prevent lodash from being inlined to work around a babel-loader incompatibility ([7f21910](https://github.com/jantimon/html-webpack-plugin/commit/7f21910707a2b53a9a5da3ac9e4b01e36147402f)), closes [#1223](https://github.com/jantimon/html-webpack-plugin/issues/1223)
228
- * Remove compilation.getStats() call for performance reasons ([7005a55](https://github.com/jantimon/html-webpack-plugin/commit/7005a557529bee948c5ef0a1b8b44a1a41a28417))
229
- * remove useless links for options ([#1153](https://github.com/jantimon/html-webpack-plugin/issues/1153)) ([267e0e0](https://github.com/jantimon/html-webpack-plugin/commit/267e0e0eac155569c822c34f120490bdf3f56d43))
230
- * Update references to html-minifier ([24bf1b5](https://github.com/jantimon/html-webpack-plugin/commit/24bf1b5e2a0d087b30d057d1780d8f495aa01e26)), closes [#1311](https://github.com/jantimon/html-webpack-plugin/issues/1311)
231
- * **typings.d.ts:** added apply method type to HtmlWwbpackPlugin class definitoin ([8b7255f](https://github.com/jantimon/html-webpack-plugin/commit/8b7255f555423dd1bfa51a3c28700e4bd116f97b)), closes [jantimon#1244](https://github.com/jantimon/issues/1244)
232
- * rename `contenthash` to `templatehash` ([4c11c5d](https://github.com/jantimon/html-webpack-plugin/commit/4c11c5dfde9d87d71dce9cf51864648f8e42b912))
233
- * Repair typings ([#1166](https://github.com/jantimon/html-webpack-plugin/issues/1166)) ([f4cb241](https://github.com/jantimon/html-webpack-plugin/commit/f4cb241157a9a1fed4721b1abc1f390b09595494))
234
- * small type. minifcation instead of minification ([#1154](https://github.com/jantimon/html-webpack-plugin/issues/1154)) ([56037a6](https://github.com/jantimon/html-webpack-plugin/commit/56037a6b2ae4a7606b54f5af213b6a2b8145f95e))
235
- * Use src/index.ejs by default if present ([#1167](https://github.com/jantimon/html-webpack-plugin/issues/1167)) ([c27e5e4](https://github.com/jantimon/html-webpack-plugin/commit/c27e5e46a334d9c1e177a521ea7c9a5ba3c6d980))
236
- * **chunksorter:** Don't sort chunks by default ([22fb03f](https://github.com/jantimon/html-webpack-plugin/commit/22fb03fb17fdb37d5ce6de00af154b5575a02d3a))
237
- * **loader:** switch to loaderUtils.getOptions ([a0a0f0d](https://github.com/jantimon/html-webpack-plugin/commit/a0a0f0dc755fbc3249aa2e1d1c6a4dd307ab8e8a))
238
- * **README:** adds a link to template option documentation ([f40aeae](https://github.com/jantimon/html-webpack-plugin/commit/f40aeae312af73c6c5263cd99e81069f41d3b699))
239
- * **tests:** Upgrade webpack-recompilation-simulator ([dfe1d10](https://github.com/jantimon/html-webpack-plugin/commit/dfe1d10c4511b0da4354cacf79ca0d5ac7baf862))
240
- * Update lodash to 4.17.10 ([cc3bf49](https://github.com/jantimon/html-webpack-plugin/commit/cc3bf4909605879993c22e3048ee520dbdc8fa49))
241
-
242
-
243
- ### Code Refactoring
244
-
245
- * Change the structure of the internal assets object ([37db086](https://github.com/jantimon/html-webpack-plugin/commit/37db0868efdbf334a1b60003fe5bd376cfd8ae01))
246
- * Changed hook names and arguments - the hook order is 'beforeAssetTagGeneration', 'alterAssetTags', 'alterAssetTagGroups', 'afterTemplateExecution', 'beforeEmit', 'afterEmit' ([14b4456](https://github.com/jantimon/html-webpack-plugin/commit/14b4456ba67a5b85421b558bbd5f1d59c7b410b3))
247
- * Use Webpack 4 APIs ([47efdea](https://github.com/jantimon/html-webpack-plugin/commit/47efdeaf17806f7d4e26aefacc748a92077f904a))
248
-
249
-
250
- ### Features
251
-
252
- * add `.toString` implementation to htmlTags to allow easier rendering ([34d8aa5](https://github.com/jantimon/html-webpack-plugin/commit/34d8aa572c7acc59c26f3b5d15bf489a07aa4c24))
253
- * Add default viewport meta tag for default template ([302e39e](https://github.com/jantimon/html-webpack-plugin/commit/302e39e30013b5828bb6c9e7036db951f70d0cf5)), closes [#897](https://github.com/jantimon/html-webpack-plugin/issues/897) [#978](https://github.com/jantimon/html-webpack-plugin/issues/978)
254
- * Add defer script loading ([de315eb](https://github.com/jantimon/html-webpack-plugin/commit/de315eb98497f3e5f517d59dbbe120b48c9b8db9))
255
- * Add support for relative publicPath ([dbbdd81](https://github.com/jantimon/html-webpack-plugin/commit/dbbdd81de570dd181ea0905a6445fdeb5a784912))
256
- * Add support for <base> tag ([#1160](https://github.com/jantimon/html-webpack-plugin/issues/1160)) ([c5d4b86](https://github.com/jantimon/html-webpack-plugin/commit/c5d4b869c196c59cdd6a9c30db58f1f8be07a820))
257
- * Add support for minifying inline ES6 inside html templates ([c66766c](https://github.com/jantimon/html-webpack-plugin/commit/c66766cdae3593091dee413b9c585359c24ef068)), closes [#1262](https://github.com/jantimon/html-webpack-plugin/issues/1262)
258
- * Add support for the [contenthash] placeholder inside htm file names ([ae8233a](https://github.com/jantimon/html-webpack-plugin/commit/ae8233a04d4105b6e970feaa2c5e11c0b48fd4b7))
259
- * Add typings to package.json ([a524e8f](https://github.com/jantimon/html-webpack-plugin/commit/a524e8f24e905d5e51fedd50d33a41328a9b87eb)), closes [#1132](https://github.com/jantimon/html-webpack-plugin/issues/1132)
260
- * Allow to return async template parameters ([99f9362](https://github.com/jantimon/html-webpack-plugin/commit/99f9362703055baf0029b8852cb5339b6218829d))
261
- * drop workaround for "Uncaught TypeError: __webpack_require__(...) is not a function" to be compatible with webpack 5 ([15ad0d2](https://github.com/jantimon/html-webpack-plugin/commit/15ad0d260443edfdcc953fa08c675c90c063bac7))
262
- * Export major version of this plugin ([6ae6f48](https://github.com/jantimon/html-webpack-plugin/commit/6ae6f48ecf92b080809d68092ee8c6825edfe5a4))
263
- * merge templateParameters with default template parameters ([1d66e53](https://github.com/jantimon/html-webpack-plugin/commit/1d66e5333bc2aeb8caadf96e572af756d3708d19))
264
- * Provide a verbose error message if html minification failed ([7df269f](https://github.com/jantimon/html-webpack-plugin/commit/7df269fd2a840d0800cb259bd559edb0b766e7ab))
265
- * **compiler:** Add file dependencies ([bbc07a3](https://github.com/jantimon/html-webpack-plugin/commit/bbc07a3a214e3b693e6c9e3d6404e146a0fc023a))
266
- * **compiler:** Use a single compiler for multiple plugin instances ([f29ae88](https://github.com/jantimon/html-webpack-plugin/commit/f29ae886d7fad50e7fbb78ac7ff7d5bd9bc47f49))
267
- * **compiler:** Use timestamps to verify cache validity ([0ebcd17](https://github.com/jantimon/html-webpack-plugin/commit/0ebcd1776132262b799f2814659f4d90c3f3c1b3))
268
- * Remove selfClosingTag ([5d3d8e4](https://github.com/jantimon/html-webpack-plugin/commit/5d3d8e4b73b7b97dba8bdf5fe1ecf50598040b54))
269
- * Remove type="text/javascript" from injected script tags ([b46bf67](https://github.com/jantimon/html-webpack-plugin/commit/b46bf67ae4492a12b60c42c7d26831e480522b49))
270
- * Replace jade with pug in examples ([d7ec407](https://github.com/jantimon/html-webpack-plugin/commit/d7ec4078c85b3ed9c2ff84e10fe75392f26a6130))
271
- * Switch from jasmine to jest ([ae1f435](https://github.com/jantimon/html-webpack-plugin/commit/ae1f43527945c8ae953c2ba549631f2d090e003a))
272
- * **hooks:** Add a helper for easier hook access ([b6dec4b](https://github.com/jantimon/html-webpack-plugin/commit/b6dec4bf1072509282756e8d83ef6ee447485f3a))
273
- * **hooks:** Provide static getHook method for access to all html-webpack-plugin hooks ([#995](https://github.com/jantimon/html-webpack-plugin/issues/995)) ([82b34a1](https://github.com/jantimon/html-webpack-plugin/commit/82b34a1dd2e96cbcd715fafe4e97073efd30cc9f))
274
- * Simplify <meta> element and charset attribute ([55313be](https://github.com/jantimon/html-webpack-plugin/commit/55313bee9b82ea79157085e48bba4fa2ebfef6a4))
275
- * support ES6 template string in default loader ([d6b65dd](https://github.com/jantimon/html-webpack-plugin/commit/d6b65dd1531038deac1be87c2087da5955903d24)), closes [#950](https://github.com/jantimon/html-webpack-plugin/issues/950)
276
- * Use jsdoc for static typing ([a6b8d2d](https://github.com/jantimon/html-webpack-plugin/commit/a6b8d2dcf3b1183d50589b869162b972ad32de4d))
277
- * Use webpack 4 entries api to extract asset information ([342867e](https://github.com/jantimon/html-webpack-plugin/commit/342867e1edb7c2a8748b0aca396f160f0b13d42e))
278
- * **html-tags:** Add a helper to create html-tags ([ee6a165](https://github.com/jantimon/html-webpack-plugin/commit/ee6a165425a6b47dff341fb651848ec5727d7f7e))
279
-
280
-
281
- ### BREAKING CHANGES
282
-
283
- * **defaults:** Use src/index.ejs if no template option is set.
284
- * **defaults:** The default template has now a predefined viewport meta tag
285
- * **defaults:** The default meta utf-8 declaration was changed to <meta charset="utf-8"/>
286
- * **hooks:** Renamed beforeHtmlGeneration hook to beforeAssetTagGeneration
287
- * **hooks:** Renamed beforeHtmlProcessing hook to alterAssetTags
288
- * **hooks:** Renamed afterHtmlProcessing hook to beforeEmit
289
- * **hooks:** The html-webpack-plugin doesn't add its hooks to the compilation object anymore
290
- * The assets object which is used for the template parameters and inside hooks was changed. The chunks property was removed and the js and css property was converted from a string into an object `{ entryName: string, path: string}`
291
- * The mimetype information "text/javascript" is removed from all generated script
292
- tags
293
- * Remove selfClosingTag attribute
294
- * Template strings inside templates are now disabled by default
295
- * Dropped support for Webpack 1 - 3
296
- * Template variable webpack was removed
297
- * **chunksorter:** Chunks aren't sorted anymore by default
298
-
299
-
300
- <a name="3.2.0"></a>
301
- # [3.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.1.0...v3.2.0) (2018-04-03)
302
-
303
-
304
- ### Bug Fixes
305
-
306
- * **loader:** Allow to add new template parameters ([f7eac19](https://github.com/jantimon/html-webpack-plugin/commit/f7eac19)), closes [#915](https://github.com/jantimon/html-webpack-plugin/issues/915)
307
- * **loader:** Use lodash inside the loader directly ([7b4eb7f](https://github.com/jantimon/html-webpack-plugin/commit/7b4eb7f)), closes [#786](https://github.com/jantimon/html-webpack-plugin/issues/786)
308
-
309
-
310
- ### Features
311
-
312
- * Add meta tag option ([a7d37ca](https://github.com/jantimon/html-webpack-plugin/commit/a7d37ca))
313
- * Support node 6.9 ([74a22c4](https://github.com/jantimon/html-webpack-plugin/commit/74a22c4)), closes [#918](https://github.com/jantimon/html-webpack-plugin/issues/918)
314
-
315
-
316
-
317
- <a name="3.1.0"></a>
318
- # [3.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.8...v3.1.0) (2018-03-22)
319
-
320
-
321
- ### Features
322
-
323
- * Allow to overwrite the templateParameter [#830](https://github.com/jantimon/html-webpack-plugin/issues/830) ([c5e32d3](https://github.com/jantimon/html-webpack-plugin/commit/c5e32d3))
324
-
325
-
326
-
327
- <a name="3.0.8"></a>
328
- ## [3.0.8](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.7...v3.0.8) (2018-03-22)
329
-
330
-
331
- ### Bug Fixes
332
-
333
- * **compiler:** Fallback to 3.0.7 because of [#900](https://github.com/jantimon/html-webpack-plugin/issues/900) ([05ee29b](https://github.com/jantimon/html-webpack-plugin/commit/05ee29b))
334
-
335
-
336
-
337
- <a name="3.0.7"></a>
338
- ## [3.0.7](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.6...v3.0.7) (2018-03-19)
339
-
340
-
341
- ### Bug Fixes
342
-
343
- * **compiler:** Set single entry name [#895](https://github.com/jantimon/html-webpack-plugin/issues/895) ([26dcb98](https://github.com/jantimon/html-webpack-plugin/commit/26dcb98))
344
-
345
-
346
-
347
- <a name="3.0.6"></a>
348
- ## [3.0.6](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.5...v3.0.6) (2018-03-06)
349
-
350
-
351
- ### Bug Fixes
352
-
353
- * **hooks:** Call tapable.apply directly [#879](https://github.com/jantimon/html-webpack-plugin/issues/879) ([bcbb036](https://github.com/jantimon/html-webpack-plugin/commit/bcbb036))
354
-
355
-
356
-
357
- <a name="3.0.5"></a>
358
- ## [3.0.5](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.5) (2018-03-06)
359
-
360
-
361
- ### Bug Fixes
362
-
363
- * **entries:** do not ignore JS if there is also CSS ([020b714](https://github.com/jantimon/html-webpack-plugin/commit/020b714))
364
- * **entries:** Don't add css entries twice ([0348d6b](https://github.com/jantimon/html-webpack-plugin/commit/0348d6b))
365
- * **hooks:** Remove deprecated tapable calls [#879](https://github.com/jantimon/html-webpack-plugin/issues/879) ([2288f20](https://github.com/jantimon/html-webpack-plugin/commit/2288f20))
366
-
367
-
368
-
369
- <a name="3.0.4"></a>
370
- ## [3.0.4](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.4) (2018-03-01)
371
-
372
-
373
- ### Bug Fixes
374
-
375
- * **entries:** Don't add css entries twice ([e890f23](https://github.com/jantimon/html-webpack-plugin/commit/e890f23))
376
-
377
-
378
-
379
- <a name="3.0.3"></a>
380
- ## [3.0.3](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.3) (2018-03-01)
381
-
382
-
383
- ### Refactor
384
-
385
- * **performance:** Reduce the amount of chunk information gathered based on #825 ([06c59a7](https://github.com/jantimon/html-webpack-plugin/commit/06c59a7))
386
-
387
-
388
- <a name="3.0.2"></a>
389
- ## [3.0.2](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.1...v3.0.2) (2018-03-01)
390
-
391
-
392
- ### Bug Fixes
393
-
394
- * **query-loader:** In case no query is provided, return an empty object. This fixes #727 ([7587754](https://github.com/jantimon/html-webpack-plugin/commit/7587754))
395
-
396
-
397
-
398
- <a name="3.0.1"></a>
399
- ## [3.0.1](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.0...v3.0.1) (2018-03-01)
400
-
401
-
402
- ### Bug Fixes
403
-
404
- * **package:** Remove the extract-text-webpack-plugin peer dependency ([57411a9](https://github.com/jantimon/html-webpack-plugin/commit/57411a9))
405
-
406
- <a name="3.0.0"></a>
407
- ## [3.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v2.30.1...v3.0.0) (2018-28-02)
408
-
409
- ### Features
410
-
411
- * Add support for the new [webpack tapable](https://github.com/webpack/tapable) to be compatible with webpack 4.x
412
- * Remove bluebird dependency
413
-
414
- ### BREAKING CHANGES
415
-
416
- * Similar to webpack 4.x the support for node versions older than 6 are no longer supported
417
-
418
- <a name="2.30.1"></a>
419
- ## 2.30.1
420
-
421
- * Revert part the performance optimization ([#723](https://github.com/jantimon/html-webpack-plugin/pull/723)) because of [#753](https://github.com/jantimon/html-webpack-plugin/issues/753).
422
-
423
- <a name="2.30.0"></a>
424
- ## 2.30.0
425
-
426
- * Add manual sort
427
- * Performance improvements ([#723](https://github.com/jantimon/html-webpack-plugin/pull/723))
428
-
429
- <a name="2.29.0"></a>
430
- ## 2.29.0
431
-
432
- * Add support for Webpack 3
433
-
434
- <a name="2.28.0"></a>
435
- ## 2.28.0
436
-
437
- * Backport 3.x void tag for plugin authors
438
-
439
- <a name="2.27.1"></a>
440
- ## 2.27.1
441
-
442
- * Revert 2.25.0 loader resolving
443
-
444
- <a name="2.27.0"></a>
445
- ## 2.27.0
446
-
447
- * Fix a chunksorter webpack 2 issue ([#569](https://github.com/jantimon/html-webpack-plugin/pull/569))
448
- * Fix template path resolving ([#542](https://github.com/jantimon/html-webpack-plugin/pull/542))
449
-
450
- <a name="2.26.0"></a>
451
- ## 2.26.0
452
-
453
- * Allow plugins to add attributes without values to the `<script>` and `<link>` tags
454
-
455
- <a name="2.25.0"></a>
456
- ## 2.25.0
457
-
458
- * Clearer loader output
459
- * Add basic support for webpack 2
460
-
461
- <a name="2.24.1"></a>
462
- ## 2.24.1
463
-
464
- * Hide event deprecated warning of 'applyPluginsAsyncWaterfall' for html-webpack-plugin-after-emit and improve the warning message.
465
-
466
- <a name="2.24.0"></a>
467
- ## 2.24.0
468
-
469
- * Update dependencies
470
- * Add deprecate warning for plugins not returning a result
471
- * Add [path] for favicons
472
-
473
- <a name="2.23.0"></a>
474
- ## 2.23.0
475
-
476
- * Update dependencies
477
- * Stop automated tests for webpack 2 beta because of [#401](https://github.com/jantimon/html-webpack-plugin/issues/401)
478
-
479
- <a name="2.22.0"></a>
480
- ## 2.22.0
481
-
482
- * Update dependencies
483
-
484
- <a name="2.21.1"></a>
485
- ## 2.21.1
486
-
487
- * Better error handling ([#354](https://github.com/jantimon/html-webpack-plugin/pull/354))
488
-
489
- <a name="2.21.0"></a>
490
- ## 2.21.0
491
-
492
- * Add `html-webpack-plugin-alter-asset-tags` event to allow plugins to adjust the script/link tags
493
-
494
- <a name="2.20.0"></a>
495
- ## 2.20.0
496
-
497
- * Exclude chunks works now even if combined with dependency sort
498
-
499
- <a name="2.19.0"></a>
500
- ## 2.19.0
501
-
502
- * Add `html-webpack-plugin-alter-chunks` event for custom chunk sorting and interpolation
503
-
504
- <a name="2.18.0"></a>
505
- ## 2.18.0
506
-
507
- * Updated all dependencies
508
-
509
- <a name="2.17.0"></a>
510
- ## 2.17.0
511
-
512
- * Add `type` attribute to `script` element to prevent issues in Safari 9.1.1
513
-
514
- <a name="2.16.2"></a>
515
- ## 2.16.2
516
-
517
- * Fix bug introduced by 2.16.2. Fixes [#315](https://github.com/jantimon/html-webpack-plugin/issues/315)
518
-
519
- <a name="2.16.1"></a>
520
- ## 2.16.1
521
-
522
- * Fix hot module replacement for webpack 2.x
523
-
524
- <a name="2.16.0"></a>
525
- ## 2.16.0
526
-
527
- * Add support for dynamic filenames like index[hash].html
528
-
529
- <a name="2.15.0"></a>
530
- ## 2.15.0
531
-
532
- * Add full unit test coverage for the webpack 2 beta version
533
- * For webpack 2 the default sort will be 'dependency' instead of 'id'
534
- * Upgrade dependencies
535
-
536
- <a name="2.14.0"></a>
537
- ## 2.14.0
538
-
539
- * Export publicPath to the template
540
- * Add example for inlining css and js
541
-
542
- <a name="2.13.0"></a>
543
- ## 2.13.0
544
-
545
- * Add support for absolute output file names
546
- * Add support for relative file names outside the output path
547
-
548
- <a name="2.12.0"></a>
549
- ## 2.12.0
550
-
551
- * Basic Webpack 2.x support #225
552
-
553
- <a name="2.11.0"></a>
554
- ## 2.11.0
555
-
556
- * Add `xhtml` option which is turned of by default. When activated it will inject self closed `<link href=".." />` tags instead of unclosed `<link href="..">` tags. ([#255](https://github.com/ampedandwired/html-webpack-plugin/pull/255))
557
- * Add support for webpack placeholders inside the public path e.g. `'/dist/[hash]/'`. ([#249](https://github.com/ampedandwired/html-webpack-plugin/pull/249))
558
-
559
- <a name="2.10.0"></a>
560
- ## 2.10.0
561
-
562
- * Add `hash` field to the chunk object
563
- * Add `compilation` field to the templateParam object ([#237](https://github.com/ampedandwired/html-webpack-plugin/issues/237))
564
- * Add `html-webpack-plugin-before-html-generation` event
565
- * Improve error messages
566
-
567
- <a name="2.9.0"></a>
568
- ## 2.9.0
569
-
570
- * Fix favicon path ([#185](https://github.com/ampedandwired/html-webpack-plugin/issues/185), [#208](https://github.com/ampedandwired/html-webpack-plugin/issues/208), [#215](https://github.com/ampedandwired/html-webpack-plugin/pull/215))
571
-
572
- <a name="2.8.2"></a>
573
- ## 2.8.2
574
-
575
- * Support relative URLs on Windows ([#205](https://github.com/ampedandwired/html-webpack-plugin/issues/205))
576
-
577
- <a name="2.8.1"></a>
578
- ## 2.8.1
579
-
580
- * Caching improvements ([#204](https://github.com/ampedandwired/html-webpack-plugin/issues/204))
581
-
582
- <a name="2.8.0"></a>
583
- ## 2.8.0
584
-
585
- * Add `dependency` mode for `chunksSortMode` to sort chunks based on their dependencies with each other
586
-
587
- <a name="2.7.2"></a>
588
- ## 2.7.2
589
-
590
- * Add support for require in js templates
591
-
592
- <a name="2.7.1"></a>
593
- ## 2.7.1
594
-
595
- * Refactoring
596
- * Fix relative windows path
597
-
598
- <a name="2.6.5"></a>
599
- ## 2.6.5
600
-
601
- * Minor refactoring
602
-
603
- <a name="2.6.4"></a>
604
- ## 2.6.4
605
-
606
- * Fix for `"Uncaught TypeError: __webpack_require__(...) is not a function"`
607
- * Fix incomplete cache modules causing "HtmlWebpackPlugin Error: No source available"
608
- * Fix some issues on Windows
609
-
610
- <a name="2.6.3"></a>
611
- ## 2.6.3
612
-
613
- * Prevent parsing the base template with the html-loader
614
-
615
- <a name="2.6.2"></a>
616
- ## 2.6.2
617
-
618
- * Fix `lodash` resolve error ([#172](https://github.com/ampedandwired/html-webpack-plugin/issues/172))
619
-
620
- <a name="2.6.1"></a>
621
- ## 2.6.1
622
-
623
- * Fix missing module ([#164](https://github.com/ampedandwired/html-webpack-plugin/issues/164))
624
-
625
- <a name="2.6.0"></a>
626
- ## 2.6.0
627
-
628
- * Move compiler to its own file
629
- * Improve error messages
630
- * Fix global HTML_WEBPACK_PLUGIN variable
631
-
632
- <a name="2.5.0"></a>
633
- ## 2.5.0
634
-
635
- * Support `lodash` template's HTML _"escape"_ delimiter (`<%- %>`)
636
- * Fix bluebird warning ([#130](https://github.com/ampedandwired/html-webpack-plugin/issues/130))
637
- * Fix an issue where incomplete cache modules were used
638
-
639
- <a name="2.4.0"></a>
640
- ## 2.4.0
641
-
642
- * Don't recompile if the assets didn't change
643
-
644
- <a name="2.3.0"></a>
645
- ## 2.3.0
646
-
647
- * Add events `html-webpack-plugin-before-html-processing`, `html-webpack-plugin-after-html-processing`, `html-webpack-plugin-after-emit` to allow other plugins to alter the html this plugin executes
648
-
649
- <a name="2.2.0"></a>
650
- ## 2.2.0
651
-
652
- * Inject css and js even if the html file is incomplete ([#135](https://github.com/ampedandwired/html-webpack-plugin/issues/135))
653
- * Update dependencies
654
-
655
- <a name="2.1.0"></a>
656
- ## 2.1.0
657
-
658
- * Synchronize with the stable `@1` version
659
-
660
- <a name="2.0.4"></a>
661
- ## 2.0.4
662
-
663
- * Fix `minify` option
664
- * Fix missing hash interpolation in publicPath
665
-
666
- <a name="2.0.3"></a>
667
- ## 2.0.3
668
-
669
- * Add support for webpack.BannerPlugin
670
-
671
- <a name="2.0.2"></a>
672
- ## 2.0.2
673
-
674
- * Add support for loaders in templates ([#41](https://github.com/ampedandwired/html-webpack-plugin/pull/41))
675
- * Remove `templateContent` option from configuration
676
- * Better error messages
677
- * Update dependencies
678
-
679
-
680
- <a name="1.7.0"></a>
681
- ## 1.7.0
682
-
683
- * Add `chunksSortMode` option to configuration to control how chunks should be sorted before they are included to the html
684
- * Don't insert async chunks into html ([#95](https://github.com/ampedandwired/html-webpack-plugin/issues/95))
685
- * Update dependencies
686
-
687
- <a name="1.6.2"></a>
688
- ## 1.6.2
689
-
690
- * Fix paths on Windows
691
- * Fix missing hash interpolation in publicPath
692
- * Allow only `false` or `object` in `minify` configuration option
693
-
694
- <a name="1.6.1"></a>
695
- ## 1.6.1
696
-
697
- * Add `size` field to the chunk object
698
- * Fix stylesheet `<link>`s being discarded when used with `"inject: 'head'"`
699
- * Update dependencies
700
-
701
- <a name="1.6.0"></a>
702
- ## 1.6.0
703
-
704
- * Support placing templates in subfolders
705
- * Don't include chunks with undefined name ([#60](https://github.com/ampedandwired/html-webpack-plugin/pull/60))
706
- * Don't include async chunks
707
-
708
- <a name="1.5.2"></a>
709
- ## 1.5.2
710
-
711
- * Update dependencies (lodash)
712
-
713
- <a name="1.5.1"></a>
714
- ## 1.5.1
715
-
716
- * Fix error when manifest is specified ([#56](https://github.com/ampedandwired/html-webpack-plugin/issues/56))
717
-
718
- <a name="1.5.0"></a>
719
- ## 1.5.0
720
-
721
- * Allow to inject javascript files into the head of the html page
722
- * Fix error reporting
723
-
724
- <a name="1.4.0"></a>
725
- ## 1.4.0
726
-
727
- * Add `favicon.ico` option
728
- * Add html minifcation
729
-
730
- <a name="1.2.0"></a>
731
- ## 1.2.0
732
-
733
- * Set charset using HTML5 meta attribute
734
- * Reload upon change when using webpack watch mode
735
- * Generate manifest attribute when using
736
- [appcache-webpack-plugin](https://github.com/lettertwo/appcache-webpack-plugin)
737
- * Optionally add webpack hash as a query string to resources included in the HTML
738
- (`hash: true`) for cache busting
739
- * CSS files generated using webpack (for example, by using the
740
- [extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin))
741
- are now automatically included into the generated HTML
742
- * More detailed information about the files generated by webpack is now available
743
- to templates in the `o.htmlWebpackPlugin.files` attribute. See readme for more
744
- details. This new attribute deprecates the old `o.htmlWebpackPlugin.assets` attribute.
745
- * The `templateContent` option can now be a function that returns the template string to use
746
- * Expose webpack configuration to templates (`o.webpackConfig`)
747
- * Sort chunks to honour dependencies between them (useful for use with CommonsChunkPlugin).