1 | # Change Log
|
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 | <a name="3.0.5"></a>
|
6 | ## [3.0.5](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.5) (2018-03-06)
|
7 |
|
8 |
|
9 | ### Bug Fixes
|
10 |
|
11 | * **entries:** do not ignore JS if there is also CSS ([020b714](https://github.com/jantimon/html-webpack-plugin/commit/020b714))
|
12 | * **entries:** Don't add css entries twice ([0348d6b](https://github.com/jantimon/html-webpack-plugin/commit/0348d6b))
|
13 | * **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))
|
14 |
|
15 |
|
16 |
|
17 | <a name="3.0.4"></a>
|
18 | ## [3.0.4](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.4) (2018-03-01)
|
19 |
|
20 |
|
21 | ### Bug Fixes
|
22 |
|
23 | * **entries:** Don't add css entries twice ([e890f23](https://github.com/jantimon/html-webpack-plugin/commit/e890f23))
|
24 |
|
25 |
|
26 |
|
27 | <a name="3.0.3"></a>
|
28 | ## [3.0.3](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.3) (2018-03-01)
|
29 |
|
30 |
|
31 | ### Refactor
|
32 |
|
33 | * **performance:** Reduce the amount of chunk information gathered based on #825 ([06c59a7](https://github.com/jantimon/html-webpack-plugin/commit/06c59a7))
|
34 |
|
35 |
|
36 | <a name="3.0.2"></a>
|
37 | ## [3.0.2](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.1...v3.0.2) (2018-03-01)
|
38 |
|
39 |
|
40 | ### Bug Fixes
|
41 |
|
42 | * **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))
|
43 |
|
44 |
|
45 |
|
46 | <a name="3.0.1"></a>
|
47 | ## [3.0.1](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.0...v3.0.1) (2018-03-01)
|
48 |
|
49 |
|
50 | ### Bug Fixes
|
51 |
|
52 | * **package:** Remove the extract-text-webpack-plugin peer dependency ([57411a9](https://github.com/jantimon/html-webpack-plugin/commit/57411a9))
|
53 |
|
54 | <a name="3.0.0"></a>
|
55 | ## [3.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v2.30.1...v3.0.0) (2018-28-02)
|
56 |
|
57 | ### Features
|
58 |
|
59 | * Add support for the new [webpack tapable](https://github.com/webpack/tapable) to be compatible with webpack 4.x
|
60 | * Remove bluebird dependency
|
61 |
|
62 | ### BREAKING CHANGES
|
63 |
|
64 | * Similar to webpack 4.x the support for node versions older than 6 are no longer supported
|
65 |
|
66 | <a name="2.30.1"></a>
|
67 | ## 2.30.1
|
68 |
|
69 | * 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).
|
70 |
|
71 | <a name="2.30.0"></a>
|
72 | ## 2.30.0
|
73 |
|
74 | * Add manual sort
|
75 | * Performance improvements ([#723](https://github.com/jantimon/html-webpack-plugin/pull/723))
|
76 |
|
77 | <a name="2.29.0"></a>
|
78 | ## 2.29.0
|
79 |
|
80 | * Add support for Webpack 3
|
81 |
|
82 | <a name="2.28.0"></a>
|
83 | ## 2.28.0
|
84 |
|
85 | * Backport 3.x void tag for plugin authors
|
86 |
|
87 | <a name="2.27.1"></a>
|
88 | ## 2.27.1
|
89 |
|
90 | * Revert 2.25.0 loader resolving
|
91 |
|
92 | <a name="2.27.0"></a>
|
93 | ## 2.27.0
|
94 |
|
95 | * Fix a chunksorter webpack 2 issue ([#569](https://github.com/jantimon/html-webpack-plugin/pull/569))
|
96 | * Fix template path resolving ([#542](https://github.com/jantimon/html-webpack-plugin/pull/542))
|
97 |
|
98 | <a name="2.26.0"></a>
|
99 | ## 2.26.0
|
100 |
|
101 | * Allow plugins to add attributes without values to the `<script>` and `<link>` tags
|
102 |
|
103 | <a name="2.25.0"></a>
|
104 | ## 2.25.0
|
105 |
|
106 | * Clearer loader output
|
107 | * Add basic support for webpack 2
|
108 |
|
109 | <a name="2.24.1"></a>
|
110 | ## 2.24.1
|
111 |
|
112 | * Hide event deprecated warning of 'applyPluginsAsyncWaterfall' for html-webpack-plugin-after-emit and improve the warning message.
|
113 |
|
114 | <a name="2.24.0"></a>
|
115 | ## 2.24.0
|
116 |
|
117 | * Update dependencies
|
118 | * Add deprecate warning for plugins not returning a result
|
119 | * Add [path] for favicons
|
120 |
|
121 | <a name="2.23.0"></a>
|
122 | ## 2.23.0
|
123 |
|
124 | * Update dependencies
|
125 | * Stop automated tests for webpack 2 beta because of [#401](https://github.com/jantimon/html-webpack-plugin/issues/401)
|
126 |
|
127 | <a name="2.22.0"></a>
|
128 | ## 2.22.0
|
129 |
|
130 | * Update dependencies
|
131 |
|
132 | <a name="2.21.1"></a>
|
133 | ## 2.21.1
|
134 |
|
135 | * Better error handling ([#354](https://github.com/jantimon/html-webpack-plugin/pull/354))
|
136 |
|
137 | <a name="2.21.0"></a>
|
138 | ## 2.21.0
|
139 |
|
140 | * Add `html-webpack-plugin-alter-asset-tags` event to allow plugins to adjust the script/link tags
|
141 |
|
142 | <a name="2.20.0"></a>
|
143 | ## 2.20.0
|
144 |
|
145 | * Exclude chunks works now even if combined with dependency sort
|
146 |
|
147 | <a name="2.19.0"></a>
|
148 | ## 2.19.0
|
149 |
|
150 | * Add `html-webpack-plugin-alter-chunks` event for custom chunk sorting and interpolation
|
151 |
|
152 | <a name="2.18.0"></a>
|
153 | ## 2.18.0
|
154 |
|
155 | * Updated all dependencies
|
156 |
|
157 | <a name="2.17.0"></a>
|
158 | ## 2.17.0
|
159 |
|
160 | * Add `type` attribute to `script` element to prevent issues in Safari 9.1.1
|
161 |
|
162 | <a name="2.16.2"></a>
|
163 | ## 2.16.2
|
164 |
|
165 | * Fix bug introduced by 2.16.2. Fixes [#315](https://github.com/jantimon/html-webpack-plugin/issues/315)
|
166 |
|
167 | <a name="2.16.1"></a>
|
168 | ## 2.16.1
|
169 |
|
170 | * Fix hot module replacement for webpack 2.x
|
171 |
|
172 | <a name="2.16.0"></a>
|
173 | ## 2.16.0
|
174 |
|
175 | * Add support for dynamic filenames like index[hash].html
|
176 |
|
177 | <a name="2.15.0"></a>
|
178 | ## 2.15.0
|
179 |
|
180 | * Add full unit test coverage for the webpack 2 beta version
|
181 | * For webpack 2 the default sort will be 'dependency' instead of 'id'
|
182 | * Upgrade dependencies
|
183 |
|
184 | <a name="2.14.0"></a>
|
185 | ## 2.14.0
|
186 |
|
187 | * Export publicPath to the template
|
188 | * Add example for inlining css and js
|
189 |
|
190 | <a name="2.13.0"></a>
|
191 | ## 2.13.0
|
192 |
|
193 | * Add support for absolute output file names
|
194 | * Add support for relative file names outside the output path
|
195 |
|
196 | <a name="2.12.0"></a>
|
197 | ## 2.12.0
|
198 |
|
199 | * Basic Webpack 2.x support #225
|
200 |
|
201 | <a name="2.11.0"></a>
|
202 | ## 2.11.0
|
203 |
|
204 | * 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))
|
205 | * Add support for webpack placeholders inside the public path e.g. `'/dist/[hash]/'`. ([#249](https://github.com/ampedandwired/html-webpack-plugin/pull/249))
|
206 |
|
207 | <a name="2.10.0"></a>
|
208 | ## 2.10.0
|
209 |
|
210 | * Add `hash` field to the chunk object
|
211 | * Add `compilation` field to the templateParam object ([#237](https://github.com/ampedandwired/html-webpack-plugin/issues/237))
|
212 | * Add `html-webpack-plugin-before-html-generation` event
|
213 | * Improve error messages
|
214 |
|
215 | <a name="2.9.0"></a>
|
216 | ## 2.9.0
|
217 |
|
218 | * 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))
|
219 |
|
220 | <a name="2.8.2"></a>
|
221 | ## 2.8.2
|
222 |
|
223 | * Support relative URLs on Windows ([#205](https://github.com/ampedandwired/html-webpack-plugin/issues/205))
|
224 |
|
225 | <a name="2.8.1"></a>
|
226 | ## 2.8.1
|
227 |
|
228 | * Caching improvements ([#204](https://github.com/ampedandwired/html-webpack-plugin/issues/204))
|
229 |
|
230 | <a name="2.8.0"></a>
|
231 | ## 2.8.0
|
232 |
|
233 | * Add `dependency` mode for `chunksSortMode` to sort chunks based on their dependencies with each other
|
234 |
|
235 | <a name="2.7.2"></a>
|
236 | ## 2.7.2
|
237 |
|
238 | * Add support for require in js templates
|
239 |
|
240 | <a name="2.7.1"></a>
|
241 | ## 2.7.1
|
242 |
|
243 | * Refactoring
|
244 | * Fix relative windows path
|
245 |
|
246 | <a name="2.6.5"></a>
|
247 | ## 2.6.5
|
248 |
|
249 | * Minor refactoring
|
250 |
|
251 | <a name="2.6.4"></a>
|
252 | ## 2.6.4
|
253 |
|
254 | * Fix for `"Uncaught TypeError: __webpack_require__(...) is not a function"`
|
255 | * Fix incomplete cache modules causing "HtmlWebpackPlugin Error: No source available"
|
256 | * Fix some issues on Windows
|
257 |
|
258 | <a name="2.6.3"></a>
|
259 | ## 2.6.3
|
260 |
|
261 | * Prevent parsing the base template with the html-loader
|
262 |
|
263 | <a name="2.6.2"></a>
|
264 | ## 2.6.2
|
265 |
|
266 | * Fix `lodash` resolve error ([#172](https://github.com/ampedandwired/html-webpack-plugin/issues/172))
|
267 |
|
268 | <a name="2.6.1"></a>
|
269 | ## 2.6.1
|
270 |
|
271 | * Fix missing module ([#164](https://github.com/ampedandwired/html-webpack-plugin/issues/164))
|
272 |
|
273 | <a name="2.6.0"></a>
|
274 | ## 2.6.0
|
275 |
|
276 | * Move compiler to its own file
|
277 | * Improve error messages
|
278 | * Fix global HTML_WEBPACK_PLUGIN variable
|
279 |
|
280 | <a name="2.5.0"></a>
|
281 | ## 2.5.0
|
282 |
|
283 | * Support `lodash` template's HTML _"escape"_ delimiter (`<%- %>`)
|
284 | * Fix bluebird warning ([#130](https://github.com/ampedandwired/html-webpack-plugin/issues/130))
|
285 | * Fix an issue where incomplete cache modules were used
|
286 |
|
287 | <a name="2.4.0"></a>
|
288 | ## 2.4.0
|
289 |
|
290 | * Don't recompile if the assets didn't change
|
291 |
|
292 | <a name="2.3.0"></a>
|
293 | ## 2.3.0
|
294 |
|
295 | * 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
|
296 |
|
297 | <a name="2.2.0"></a>
|
298 | ## 2.2.0
|
299 |
|
300 | * Inject css and js even if the html file is incomplete ([#135](https://github.com/ampedandwired/html-webpack-plugin/issues/135))
|
301 | * Update dependencies
|
302 |
|
303 | <a name="2.1.0"></a>
|
304 | ## 2.1.0
|
305 |
|
306 | * Synchronize with the stable `@1` version
|
307 |
|
308 | <a name="2.0.4"></a>
|
309 | ## 2.0.4
|
310 |
|
311 | * Fix `minify` option
|
312 | * Fix missing hash interpolation in publicPath
|
313 |
|
314 | <a name="2.0.3"></a>
|
315 | ## 2.0.3
|
316 |
|
317 | * Add support for webpack.BannerPlugin
|
318 |
|
319 | <a name="2.0.2"></a>
|
320 | ## 2.0.2
|
321 |
|
322 | * Add support for loaders in templates ([#41](https://github.com/ampedandwired/html-webpack-plugin/pull/41))
|
323 | * Remove `templateContent` option from configuration
|
324 | * Better error messages
|
325 | * Update dependencies
|
326 |
|
327 |
|
328 | <a name="1.7.0"></a>
|
329 | ## 1.7.0
|
330 |
|
331 | * Add `chunksSortMode` option to configuration to control how chunks should be sorted before they are included to the html
|
332 | * Don't insert async chunks into html ([#95](https://github.com/ampedandwired/html-webpack-plugin/issues/95))
|
333 | * Update dependencies
|
334 |
|
335 | <a name="1.6.2"></a>
|
336 | ## 1.6.2
|
337 |
|
338 | * Fix paths on Windows
|
339 | * Fix missing hash interpolation in publicPath
|
340 | * Allow only `false` or `object` in `minify` configuration option
|
341 |
|
342 | <a name="1.6.1"></a>
|
343 | ## 1.6.1
|
344 |
|
345 | * Add `size` field to the chunk object
|
346 | * Fix stylesheet `<link>`s being discarded when used with `"inject: 'head'"`
|
347 | * Update dependencies
|
348 |
|
349 | <a name="1.6.0"></a>
|
350 | ## 1.6.0
|
351 |
|
352 | * Support placing templates in subfolders
|
353 | * Don't include chunks with undefined name ([#60](https://github.com/ampedandwired/html-webpack-plugin/pull/60))
|
354 | * Don't include async chunks
|
355 |
|
356 | <a name="1.5.2"></a>
|
357 | ## 1.5.2
|
358 |
|
359 | * Update dependencies (lodash)
|
360 |
|
361 | <a name="1.5.1"></a>
|
362 | ## 1.5.1
|
363 |
|
364 | * Fix error when manifest is specified ([#56](https://github.com/ampedandwired/html-webpack-plugin/issues/56))
|
365 |
|
366 | <a name="1.5.0"></a>
|
367 | ## 1.5.0
|
368 |
|
369 | * Allow to inject javascript files into the head of the html page
|
370 | * Fix error reporting
|
371 |
|
372 | <a name="1.4.0"></a>
|
373 | ## 1.4.0
|
374 |
|
375 | * Add `favicon.ico` option
|
376 | * Add html minifcation
|
377 |
|
378 | <a name="1.2.0"></a>
|
379 | ## 1.2.0
|
380 |
|
381 | * Set charset using HTML5 meta attribute
|
382 | * Reload upon change when using webpack watch mode
|
383 | * Generate manifest attribute when using
|
384 | [appcache-webpack-plugin](https://github.com/lettertwo/appcache-webpack-plugin)
|
385 | * Optionally add webpack hash as a query string to resources included in the HTML
|
386 | (`hash: true`) for cache busting
|
387 | * CSS files generated using webpack (for example, by using the
|
388 | [extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin))
|
389 | are now automatically included into the generated HTML
|
390 | * More detailed information about the files generated by webpack is now available
|
391 | to templates in the `o.htmlWebpackPlugin.files` attribute. See readme for more
|
392 | details. This new attribute deprecates the old `o.htmlWebpackPlugin.assets` attribute.
|
393 | * The `templateContent` option can now be a function that returns the template string to use
|
394 | * Expose webpack configuration to templates (`o.webpackConfig`)
|
395 | * Sort chunks to honour dependencies between them (useful for use with CommonsChunkPlugin).
|