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 | # [4.3.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.2...v4.3.0) (2020-04-30)
|
6 |
|
7 |
|
8 | ### Features
|
9 |
|
10 | * Allow to use console.log inside templates ([c3f2fdc](https://github.com/jantimon/html-webpack-plugin/commit/c3f2fdc))
|
11 |
|
12 |
|
13 |
|
14 | ## [4.2.2](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.1...v4.2.2) (2020-04-30)
|
15 |
|
16 |
|
17 | ### Bug Fixes
|
18 |
|
19 | * Prevent "cannot read property info of undefined" when reading meta information from assets ([253ce30](https://github.com/jantimon/html-webpack-plugin/commit/253ce30))
|
20 | * use modern icon tag rel attribute for favicons ([c40dd85](https://github.com/jantimon/html-webpack-plugin/commit/c40dd85))
|
21 |
|
22 |
|
23 |
|
24 | ## [4.2.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.0...v4.2.1) (2020-04-28)
|
25 |
|
26 |
|
27 | ### Bug Fixes
|
28 |
|
29 | * don't add dependencies twice to the webpack 5 watcher api ([ceafe14](https://github.com/jantimon/html-webpack-plugin/commit/ceafe143650749a5f53a14411dc1b762e252ec44))
|
30 | * prevent scripts marked as hotModuleReplacement from being added to the html file ([119252a](https://github.com/jantimon/html-webpack-plugin/commit/119252a381bf43dea37c1be64f90c10bebc21302))
|
31 |
|
32 |
|
33 |
|
34 | # [4.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.1.0...v4.2.0) (2020-04-09)
|
35 |
|
36 |
|
37 | ### Features
|
38 |
|
39 | * Add template content ([#1401](https://github.com/jantimon/html-webpack-plugin/issues/1401)) ([4740bf7](https://github.com/jantimon/html-webpack-plugin/commit/4740bf7))
|
40 |
|
41 |
|
42 |
|
43 | # [4.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.4...v4.1.0) (2020-04-09)
|
44 |
|
45 |
|
46 | ### Features
|
47 |
|
48 | * Add webpack 5 support ([39c38a4](https://github.com/jantimon/html-webpack-plugin/commit/39c38a4))
|
49 | * Allow webpack 5 as peer dependency ([9c571e2](https://github.com/jantimon/html-webpack-plugin/commit/9c571e2))
|
50 |
|
51 |
|
52 |
|
53 | ## [4.0.4](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.3...v4.0.4) (2020-04-01)
|
54 |
|
55 |
|
56 | ### Bug Fixes
|
57 |
|
58 | * 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)
|
59 |
|
60 |
|
61 |
|
62 | ## [4.0.3](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.2...v4.0.3) (2020-03-28)
|
63 |
|
64 |
|
65 | ### Bug Fixes
|
66 |
|
67 | * add webpack, tapable and html-minifier-terser as dependencies because of types.d.ts ([238da81](https://github.com/jantimon/html-webpack-plugin/commit/238da8123950f87267954fd448f3e6b0fb1ead17))
|
68 |
|
69 |
|
70 |
|
71 | ## [4.0.2](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.1...v4.0.2) (2020-03-26)
|
72 |
|
73 |
|
74 | ### Bug Fixes
|
75 |
|
76 | * don't remove trailing slashes from self closing tags by default ([2281e4b](https://github.com/jantimon/html-webpack-plugin/commit/2281e4bfda9b91c4a83d63bfc8df8372d1e6ae9e))
|
77 |
|
78 |
|
79 |
|
80 | ## [4.0.1](https://github.com/jantimon/html-webpack-plugin/compare/v4.0.0...v4.0.1) (2020-03-23)
|
81 |
|
82 |
|
83 | ### Bug Fixes
|
84 |
|
85 | * update typedefs to match with html-minifier-terser ([2698c7e](https://github.com/jantimon/html-webpack-plugin/commit/2698c7e45a7f12113a07b256dc400ec89666130d))
|
86 |
|
87 |
|
88 |
|
89 | # [4.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.2.0...v4.0.0) (2020-03-23)
|
90 |
|
91 | The summary can be found in the [**release blog post**](https://dev.to/jantimon/html-webpack-plugin-4-has-been-released-125d).
|
92 |
|
93 | ### Bug Fixes
|
94 |
|
95 | * Add dependencies from the child compilation to the main compilation ([27c3e72](https://github.com/jantimon/html-webpack-plugin/commit/27c3e727b073701bfc739859d8325435d27cbf35))
|
96 | * 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))
|
97 | * 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)
|
98 | * 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)
|
99 | * Drop @types/webpack dependency ([d4eb1c7](https://github.com/jantimon/html-webpack-plugin/commit/d4eb1c749316af3964126606fe6c70a233c30fef))
|
100 | * Ignore foreign child compilers ([1422664](https://github.com/jantimon/html-webpack-plugin/commit/14226649aa1bbaf7b174bcacafdbe47d8ba6c851))
|
101 | * Improve perfomance for appcache files ([b94e043](https://github.com/jantimon/html-webpack-plugin/commit/b94e0434f5dbb06ee2179e91ebaa2ce7801937e0))
|
102 | * load script files before style files files in defer script loading mode ([97f9fb9](https://github.com/jantimon/html-webpack-plugin/commit/97f9fb9a68e4d3c3c9453296c352e831f7546937))
|
103 | * Prevent chunks from beeing added multiple times ([d65b37d](https://github.com/jantimon/html-webpack-plugin/commit/d65b37d2c588047e0d81a38f4645fcdb3ead0b9e))
|
104 | * 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)
|
105 | * Remove compilation.getStats() call for performance reasons ([7005a55](https://github.com/jantimon/html-webpack-plugin/commit/7005a557529bee948c5ef0a1b8b44a1a41a28417))
|
106 | * 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))
|
107 | * 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)
|
108 | * **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)
|
109 | * rename `contenthash` to `templatehash` ([4c11c5d](https://github.com/jantimon/html-webpack-plugin/commit/4c11c5dfde9d87d71dce9cf51864648f8e42b912))
|
110 | * Repair typings ([#1166](https://github.com/jantimon/html-webpack-plugin/issues/1166)) ([f4cb241](https://github.com/jantimon/html-webpack-plugin/commit/f4cb241157a9a1fed4721b1abc1f390b09595494))
|
111 | * 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))
|
112 | * 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))
|
113 | * **chunksorter:** Don't sort chunks by default ([22fb03f](https://github.com/jantimon/html-webpack-plugin/commit/22fb03fb17fdb37d5ce6de00af154b5575a02d3a))
|
114 | * **loader:** switch to loaderUtils.getOptions ([a0a0f0d](https://github.com/jantimon/html-webpack-plugin/commit/a0a0f0dc755fbc3249aa2e1d1c6a4dd307ab8e8a))
|
115 | * **README:** adds a link to template option documentation ([f40aeae](https://github.com/jantimon/html-webpack-plugin/commit/f40aeae312af73c6c5263cd99e81069f41d3b699))
|
116 | * **tests:** Upgrade webpack-recompilation-simulator ([dfe1d10](https://github.com/jantimon/html-webpack-plugin/commit/dfe1d10c4511b0da4354cacf79ca0d5ac7baf862))
|
117 | * Update lodash to 4.17.10 ([cc3bf49](https://github.com/jantimon/html-webpack-plugin/commit/cc3bf4909605879993c22e3048ee520dbdc8fa49))
|
118 |
|
119 |
|
120 | ### Code Refactoring
|
121 |
|
122 | * Change the structure of the internal assets object ([37db086](https://github.com/jantimon/html-webpack-plugin/commit/37db0868efdbf334a1b60003fe5bd376cfd8ae01))
|
123 | * 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))
|
124 | * Use Webpack 4 APIs ([47efdea](https://github.com/jantimon/html-webpack-plugin/commit/47efdeaf17806f7d4e26aefacc748a92077f904a))
|
125 |
|
126 |
|
127 | ### Features
|
128 |
|
129 | * add `.toString` implementation to htmlTags to allow easier rendering ([34d8aa5](https://github.com/jantimon/html-webpack-plugin/commit/34d8aa572c7acc59c26f3b5d15bf489a07aa4c24))
|
130 | * 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)
|
131 | * Add defer script loading ([de315eb](https://github.com/jantimon/html-webpack-plugin/commit/de315eb98497f3e5f517d59dbbe120b48c9b8db9))
|
132 | * Add support for relative publicPath ([dbbdd81](https://github.com/jantimon/html-webpack-plugin/commit/dbbdd81de570dd181ea0905a6445fdeb5a784912))
|
133 | * 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))
|
134 | * 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)
|
135 | * Add support for the [contenthash] placeholder inside htm file names ([ae8233a](https://github.com/jantimon/html-webpack-plugin/commit/ae8233a04d4105b6e970feaa2c5e11c0b48fd4b7))
|
136 | * 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)
|
137 | * Allow to return async template parameters ([99f9362](https://github.com/jantimon/html-webpack-plugin/commit/99f9362703055baf0029b8852cb5339b6218829d))
|
138 | * 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))
|
139 | * Export major version of this plugin ([6ae6f48](https://github.com/jantimon/html-webpack-plugin/commit/6ae6f48ecf92b080809d68092ee8c6825edfe5a4))
|
140 | * merge templateParameters with default template parameters ([1d66e53](https://github.com/jantimon/html-webpack-plugin/commit/1d66e5333bc2aeb8caadf96e572af756d3708d19))
|
141 | * Provide a verbose error message if html minification failed ([7df269f](https://github.com/jantimon/html-webpack-plugin/commit/7df269fd2a840d0800cb259bd559edb0b766e7ab))
|
142 | * **compiler:** Add file dependencies ([bbc07a3](https://github.com/jantimon/html-webpack-plugin/commit/bbc07a3a214e3b693e6c9e3d6404e146a0fc023a))
|
143 | * **compiler:** Use a single compiler for multiple plugin instances ([f29ae88](https://github.com/jantimon/html-webpack-plugin/commit/f29ae886d7fad50e7fbb78ac7ff7d5bd9bc47f49))
|
144 | * **compiler:** Use timestamps to verify cache validity ([0ebcd17](https://github.com/jantimon/html-webpack-plugin/commit/0ebcd1776132262b799f2814659f4d90c3f3c1b3))
|
145 | * Remove selfClosingTag ([5d3d8e4](https://github.com/jantimon/html-webpack-plugin/commit/5d3d8e4b73b7b97dba8bdf5fe1ecf50598040b54))
|
146 | * Remove type="text/javascript" from injected script tags ([b46bf67](https://github.com/jantimon/html-webpack-plugin/commit/b46bf67ae4492a12b60c42c7d26831e480522b49))
|
147 | * Replace jade with pug in examples ([d7ec407](https://github.com/jantimon/html-webpack-plugin/commit/d7ec4078c85b3ed9c2ff84e10fe75392f26a6130))
|
148 | * Switch from jasmine to jest ([ae1f435](https://github.com/jantimon/html-webpack-plugin/commit/ae1f43527945c8ae953c2ba549631f2d090e003a))
|
149 | * **hooks:** Add a helper for easier hook access ([b6dec4b](https://github.com/jantimon/html-webpack-plugin/commit/b6dec4bf1072509282756e8d83ef6ee447485f3a))
|
150 | * **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))
|
151 | * Simplify <meta> element and charset attribute ([55313be](https://github.com/jantimon/html-webpack-plugin/commit/55313bee9b82ea79157085e48bba4fa2ebfef6a4))
|
152 | * 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)
|
153 | * Use jsdoc for static typing ([a6b8d2d](https://github.com/jantimon/html-webpack-plugin/commit/a6b8d2dcf3b1183d50589b869162b972ad32de4d))
|
154 | * Use webpack 4 entries api to extract asset information ([342867e](https://github.com/jantimon/html-webpack-plugin/commit/342867e1edb7c2a8748b0aca396f160f0b13d42e))
|
155 | * **html-tags:** Add a helper to create html-tags ([ee6a165](https://github.com/jantimon/html-webpack-plugin/commit/ee6a165425a6b47dff341fb651848ec5727d7f7e))
|
156 |
|
157 |
|
158 | ### BREAKING CHANGES
|
159 |
|
160 | * **defaults:** Use src/index.ejs if no template option is set.
|
161 | * **defaults:** The default template has now a predefined viewport meta tag
|
162 | * **defaults:** The default meta utf-8 declaration was changed to <meta charset="utf-8"/>
|
163 | * **hooks:** Renamed beforeHtmlGeneration hook to beforeAssetTagGeneration
|
164 | * **hooks:** Renamed beforeHtmlProcessing hook to alterAssetTags
|
165 | * **hooks:** Renamed afterHtmlProcessing hook to beforeEmit
|
166 | * **hooks:** The html-webpack-plugin doesn't add its hooks to the compilation object anymore
|
167 | * 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}`
|
168 | * The mimetype information "text/javascript" is removed from all generated script
|
169 | tags
|
170 | * Remove selfClosingTag attribute
|
171 | * Template strings inside templates are now disabled by default
|
172 | * Dropped support for Webpack 1 - 3
|
173 | * Template variable webpack was removed
|
174 | * **chunksorter:** Chunks aren't sorted anymore by default
|
175 |
|
176 |
|
177 | <a name="3.2.0"></a>
|
178 | # [3.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.1.0...v3.2.0) (2018-04-03)
|
179 |
|
180 |
|
181 | ### Bug Fixes
|
182 |
|
183 | * **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)
|
184 | * **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)
|
185 |
|
186 |
|
187 | ### Features
|
188 |
|
189 | * Add meta tag option ([a7d37ca](https://github.com/jantimon/html-webpack-plugin/commit/a7d37ca))
|
190 | * 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)
|
191 |
|
192 |
|
193 |
|
194 | <a name="3.1.0"></a>
|
195 | # [3.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.8...v3.1.0) (2018-03-22)
|
196 |
|
197 |
|
198 | ### Features
|
199 |
|
200 | * 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))
|
201 |
|
202 |
|
203 |
|
204 | <a name="3.0.8"></a>
|
205 | ## [3.0.8](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.7...v3.0.8) (2018-03-22)
|
206 |
|
207 |
|
208 | ### Bug Fixes
|
209 |
|
210 | * **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))
|
211 |
|
212 |
|
213 |
|
214 | <a name="3.0.7"></a>
|
215 | ## [3.0.7](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.6...v3.0.7) (2018-03-19)
|
216 |
|
217 |
|
218 | ### Bug Fixes
|
219 |
|
220 | * **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))
|
221 |
|
222 |
|
223 |
|
224 | <a name="3.0.6"></a>
|
225 | ## [3.0.6](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.5...v3.0.6) (2018-03-06)
|
226 |
|
227 |
|
228 | ### Bug Fixes
|
229 |
|
230 | * **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))
|
231 |
|
232 |
|
233 |
|
234 | <a name="3.0.5"></a>
|
235 | ## [3.0.5](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.5) (2018-03-06)
|
236 |
|
237 |
|
238 | ### Bug Fixes
|
239 |
|
240 | * **entries:** do not ignore JS if there is also CSS ([020b714](https://github.com/jantimon/html-webpack-plugin/commit/020b714))
|
241 | * **entries:** Don't add css entries twice ([0348d6b](https://github.com/jantimon/html-webpack-plugin/commit/0348d6b))
|
242 | * **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))
|
243 |
|
244 |
|
245 |
|
246 | <a name="3.0.4"></a>
|
247 | ## [3.0.4](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.4) (2018-03-01)
|
248 |
|
249 |
|
250 | ### Bug Fixes
|
251 |
|
252 | * **entries:** Don't add css entries twice ([e890f23](https://github.com/jantimon/html-webpack-plugin/commit/e890f23))
|
253 |
|
254 |
|
255 |
|
256 | <a name="3.0.3"></a>
|
257 | ## [3.0.3](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.3) (2018-03-01)
|
258 |
|
259 |
|
260 | ### Refactor
|
261 |
|
262 | * **performance:** Reduce the amount of chunk information gathered based on #825 ([06c59a7](https://github.com/jantimon/html-webpack-plugin/commit/06c59a7))
|
263 |
|
264 |
|
265 | <a name="3.0.2"></a>
|
266 | ## [3.0.2](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.1...v3.0.2) (2018-03-01)
|
267 |
|
268 |
|
269 | ### Bug Fixes
|
270 |
|
271 | * **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))
|
272 |
|
273 |
|
274 |
|
275 | <a name="3.0.1"></a>
|
276 | ## [3.0.1](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.0...v3.0.1) (2018-03-01)
|
277 |
|
278 |
|
279 | ### Bug Fixes
|
280 |
|
281 | * **package:** Remove the extract-text-webpack-plugin peer dependency ([57411a9](https://github.com/jantimon/html-webpack-plugin/commit/57411a9))
|
282 |
|
283 | <a name="3.0.0"></a>
|
284 | ## [3.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v2.30.1...v3.0.0) (2018-28-02)
|
285 |
|
286 | ### Features
|
287 |
|
288 | * Add support for the new [webpack tapable](https://github.com/webpack/tapable) to be compatible with webpack 4.x
|
289 | * Remove bluebird dependency
|
290 |
|
291 | ### BREAKING CHANGES
|
292 |
|
293 | * Similar to webpack 4.x the support for node versions older than 6 are no longer supported
|
294 |
|
295 | <a name="2.30.1"></a>
|
296 | ## 2.30.1
|
297 |
|
298 | * 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).
|
299 |
|
300 | <a name="2.30.0"></a>
|
301 | ## 2.30.0
|
302 |
|
303 | * Add manual sort
|
304 | * Performance improvements ([#723](https://github.com/jantimon/html-webpack-plugin/pull/723))
|
305 |
|
306 | <a name="2.29.0"></a>
|
307 | ## 2.29.0
|
308 |
|
309 | * Add support for Webpack 3
|
310 |
|
311 | <a name="2.28.0"></a>
|
312 | ## 2.28.0
|
313 |
|
314 | * Backport 3.x void tag for plugin authors
|
315 |
|
316 | <a name="2.27.1"></a>
|
317 | ## 2.27.1
|
318 |
|
319 | * Revert 2.25.0 loader resolving
|
320 |
|
321 | <a name="2.27.0"></a>
|
322 | ## 2.27.0
|
323 |
|
324 | * Fix a chunksorter webpack 2 issue ([#569](https://github.com/jantimon/html-webpack-plugin/pull/569))
|
325 | * Fix template path resolving ([#542](https://github.com/jantimon/html-webpack-plugin/pull/542))
|
326 |
|
327 | <a name="2.26.0"></a>
|
328 | ## 2.26.0
|
329 |
|
330 | * Allow plugins to add attributes without values to the `<script>` and `<link>` tags
|
331 |
|
332 | <a name="2.25.0"></a>
|
333 | ## 2.25.0
|
334 |
|
335 | * Clearer loader output
|
336 | * Add basic support for webpack 2
|
337 |
|
338 | <a name="2.24.1"></a>
|
339 | ## 2.24.1
|
340 |
|
341 | * Hide event deprecated warning of 'applyPluginsAsyncWaterfall' for html-webpack-plugin-after-emit and improve the warning message.
|
342 |
|
343 | <a name="2.24.0"></a>
|
344 | ## 2.24.0
|
345 |
|
346 | * Update dependencies
|
347 | * Add deprecate warning for plugins not returning a result
|
348 | * Add [path] for favicons
|
349 |
|
350 | <a name="2.23.0"></a>
|
351 | ## 2.23.0
|
352 |
|
353 | * Update dependencies
|
354 | * Stop automated tests for webpack 2 beta because of [#401](https://github.com/jantimon/html-webpack-plugin/issues/401)
|
355 |
|
356 | <a name="2.22.0"></a>
|
357 | ## 2.22.0
|
358 |
|
359 | * Update dependencies
|
360 |
|
361 | <a name="2.21.1"></a>
|
362 | ## 2.21.1
|
363 |
|
364 | * Better error handling ([#354](https://github.com/jantimon/html-webpack-plugin/pull/354))
|
365 |
|
366 | <a name="2.21.0"></a>
|
367 | ## 2.21.0
|
368 |
|
369 | * Add `html-webpack-plugin-alter-asset-tags` event to allow plugins to adjust the script/link tags
|
370 |
|
371 | <a name="2.20.0"></a>
|
372 | ## 2.20.0
|
373 |
|
374 | * Exclude chunks works now even if combined with dependency sort
|
375 |
|
376 | <a name="2.19.0"></a>
|
377 | ## 2.19.0
|
378 |
|
379 | * Add `html-webpack-plugin-alter-chunks` event for custom chunk sorting and interpolation
|
380 |
|
381 | <a name="2.18.0"></a>
|
382 | ## 2.18.0
|
383 |
|
384 | * Updated all dependencies
|
385 |
|
386 | <a name="2.17.0"></a>
|
387 | ## 2.17.0
|
388 |
|
389 | * Add `type` attribute to `script` element to prevent issues in Safari 9.1.1
|
390 |
|
391 | <a name="2.16.2"></a>
|
392 | ## 2.16.2
|
393 |
|
394 | * Fix bug introduced by 2.16.2. Fixes [#315](https://github.com/jantimon/html-webpack-plugin/issues/315)
|
395 |
|
396 | <a name="2.16.1"></a>
|
397 | ## 2.16.1
|
398 |
|
399 | * Fix hot module replacement for webpack 2.x
|
400 |
|
401 | <a name="2.16.0"></a>
|
402 | ## 2.16.0
|
403 |
|
404 | * Add support for dynamic filenames like index[hash].html
|
405 |
|
406 | <a name="2.15.0"></a>
|
407 | ## 2.15.0
|
408 |
|
409 | * Add full unit test coverage for the webpack 2 beta version
|
410 | * For webpack 2 the default sort will be 'dependency' instead of 'id'
|
411 | * Upgrade dependencies
|
412 |
|
413 | <a name="2.14.0"></a>
|
414 | ## 2.14.0
|
415 |
|
416 | * Export publicPath to the template
|
417 | * Add example for inlining css and js
|
418 |
|
419 | <a name="2.13.0"></a>
|
420 | ## 2.13.0
|
421 |
|
422 | * Add support for absolute output file names
|
423 | * Add support for relative file names outside the output path
|
424 |
|
425 | <a name="2.12.0"></a>
|
426 | ## 2.12.0
|
427 |
|
428 | * Basic Webpack 2.x support #225
|
429 |
|
430 | <a name="2.11.0"></a>
|
431 | ## 2.11.0
|
432 |
|
433 | * 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))
|
434 | * Add support for webpack placeholders inside the public path e.g. `'/dist/[hash]/'`. ([#249](https://github.com/ampedandwired/html-webpack-plugin/pull/249))
|
435 |
|
436 | <a name="2.10.0"></a>
|
437 | ## 2.10.0
|
438 |
|
439 | * Add `hash` field to the chunk object
|
440 | * Add `compilation` field to the templateParam object ([#237](https://github.com/ampedandwired/html-webpack-plugin/issues/237))
|
441 | * Add `html-webpack-plugin-before-html-generation` event
|
442 | * Improve error messages
|
443 |
|
444 | <a name="2.9.0"></a>
|
445 | ## 2.9.0
|
446 |
|
447 | * 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))
|
448 |
|
449 | <a name="2.8.2"></a>
|
450 | ## 2.8.2
|
451 |
|
452 | * Support relative URLs on Windows ([#205](https://github.com/ampedandwired/html-webpack-plugin/issues/205))
|
453 |
|
454 | <a name="2.8.1"></a>
|
455 | ## 2.8.1
|
456 |
|
457 | * Caching improvements ([#204](https://github.com/ampedandwired/html-webpack-plugin/issues/204))
|
458 |
|
459 | <a name="2.8.0"></a>
|
460 | ## 2.8.0
|
461 |
|
462 | * Add `dependency` mode for `chunksSortMode` to sort chunks based on their dependencies with each other
|
463 |
|
464 | <a name="2.7.2"></a>
|
465 | ## 2.7.2
|
466 |
|
467 | * Add support for require in js templates
|
468 |
|
469 | <a name="2.7.1"></a>
|
470 | ## 2.7.1
|
471 |
|
472 | * Refactoring
|
473 | * Fix relative windows path
|
474 |
|
475 | <a name="2.6.5"></a>
|
476 | ## 2.6.5
|
477 |
|
478 | * Minor refactoring
|
479 |
|
480 | <a name="2.6.4"></a>
|
481 | ## 2.6.4
|
482 |
|
483 | * Fix for `"Uncaught TypeError: __webpack_require__(...) is not a function"`
|
484 | * Fix incomplete cache modules causing "HtmlWebpackPlugin Error: No source available"
|
485 | * Fix some issues on Windows
|
486 |
|
487 | <a name="2.6.3"></a>
|
488 | ## 2.6.3
|
489 |
|
490 | * Prevent parsing the base template with the html-loader
|
491 |
|
492 | <a name="2.6.2"></a>
|
493 | ## 2.6.2
|
494 |
|
495 | * Fix `lodash` resolve error ([#172](https://github.com/ampedandwired/html-webpack-plugin/issues/172))
|
496 |
|
497 | <a name="2.6.1"></a>
|
498 | ## 2.6.1
|
499 |
|
500 | * Fix missing module ([#164](https://github.com/ampedandwired/html-webpack-plugin/issues/164))
|
501 |
|
502 | <a name="2.6.0"></a>
|
503 | ## 2.6.0
|
504 |
|
505 | * Move compiler to its own file
|
506 | * Improve error messages
|
507 | * Fix global HTML_WEBPACK_PLUGIN variable
|
508 |
|
509 | <a name="2.5.0"></a>
|
510 | ## 2.5.0
|
511 |
|
512 | * Support `lodash` template's HTML _"escape"_ delimiter (`<%- %>`)
|
513 | * Fix bluebird warning ([#130](https://github.com/ampedandwired/html-webpack-plugin/issues/130))
|
514 | * Fix an issue where incomplete cache modules were used
|
515 |
|
516 | <a name="2.4.0"></a>
|
517 | ## 2.4.0
|
518 |
|
519 | * Don't recompile if the assets didn't change
|
520 |
|
521 | <a name="2.3.0"></a>
|
522 | ## 2.3.0
|
523 |
|
524 | * 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
|
525 |
|
526 | <a name="2.2.0"></a>
|
527 | ## 2.2.0
|
528 |
|
529 | * Inject css and js even if the html file is incomplete ([#135](https://github.com/ampedandwired/html-webpack-plugin/issues/135))
|
530 | * Update dependencies
|
531 |
|
532 | <a name="2.1.0"></a>
|
533 | ## 2.1.0
|
534 |
|
535 | * Synchronize with the stable `@1` version
|
536 |
|
537 | <a name="2.0.4"></a>
|
538 | ## 2.0.4
|
539 |
|
540 | * Fix `minify` option
|
541 | * Fix missing hash interpolation in publicPath
|
542 |
|
543 | <a name="2.0.3"></a>
|
544 | ## 2.0.3
|
545 |
|
546 | * Add support for webpack.BannerPlugin
|
547 |
|
548 | <a name="2.0.2"></a>
|
549 | ## 2.0.2
|
550 |
|
551 | * Add support for loaders in templates ([#41](https://github.com/ampedandwired/html-webpack-plugin/pull/41))
|
552 | * Remove `templateContent` option from configuration
|
553 | * Better error messages
|
554 | * Update dependencies
|
555 |
|
556 |
|
557 | <a name="1.7.0"></a>
|
558 | ## 1.7.0
|
559 |
|
560 | * Add `chunksSortMode` option to configuration to control how chunks should be sorted before they are included to the html
|
561 | * Don't insert async chunks into html ([#95](https://github.com/ampedandwired/html-webpack-plugin/issues/95))
|
562 | * Update dependencies
|
563 |
|
564 | <a name="1.6.2"></a>
|
565 | ## 1.6.2
|
566 |
|
567 | * Fix paths on Windows
|
568 | * Fix missing hash interpolation in publicPath
|
569 | * Allow only `false` or `object` in `minify` configuration option
|
570 |
|
571 | <a name="1.6.1"></a>
|
572 | ## 1.6.1
|
573 |
|
574 | * Add `size` field to the chunk object
|
575 | * Fix stylesheet `<link>`s being discarded when used with `"inject: 'head'"`
|
576 | * Update dependencies
|
577 |
|
578 | <a name="1.6.0"></a>
|
579 | ## 1.6.0
|
580 |
|
581 | * Support placing templates in subfolders
|
582 | * Don't include chunks with undefined name ([#60](https://github.com/ampedandwired/html-webpack-plugin/pull/60))
|
583 | * Don't include async chunks
|
584 |
|
585 | <a name="1.5.2"></a>
|
586 | ## 1.5.2
|
587 |
|
588 | * Update dependencies (lodash)
|
589 |
|
590 | <a name="1.5.1"></a>
|
591 | ## 1.5.1
|
592 |
|
593 | * Fix error when manifest is specified ([#56](https://github.com/ampedandwired/html-webpack-plugin/issues/56))
|
594 |
|
595 | <a name="1.5.0"></a>
|
596 | ## 1.5.0
|
597 |
|
598 | * Allow to inject javascript files into the head of the html page
|
599 | * Fix error reporting
|
600 |
|
601 | <a name="1.4.0"></a>
|
602 | ## 1.4.0
|
603 |
|
604 | * Add `favicon.ico` option
|
605 | * Add html minifcation
|
606 |
|
607 | <a name="1.2.0"></a>
|
608 | ## 1.2.0
|
609 |
|
610 | * Set charset using HTML5 meta attribute
|
611 | * Reload upon change when using webpack watch mode
|
612 | * Generate manifest attribute when using
|
613 | [appcache-webpack-plugin](https://github.com/lettertwo/appcache-webpack-plugin)
|
614 | * Optionally add webpack hash as a query string to resources included in the HTML
|
615 | (`hash: true`) for cache busting
|
616 | * CSS files generated using webpack (for example, by using the
|
617 | [extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin))
|
618 | are now automatically included into the generated HTML
|
619 | * More detailed information about the files generated by webpack is now available
|
620 | to templates in the `o.htmlWebpackPlugin.files` attribute. See readme for more
|
621 | details. This new attribute deprecates the old `o.htmlWebpackPlugin.assets` attribute.
|
622 | * The `templateContent` option can now be a function that returns the template string to use
|
623 | * Expose webpack configuration to templates (`o.webpackConfig`)
|
624 | * Sort chunks to honour dependencies between them (useful for use with CommonsChunkPlugin).
|