06352d67dd0b52192c765225024e3ce6f51c91276fb4918fdf635ea54aa045c1f154d352027c8e0b4f893a57e1a5b6b6cbf290cb755e791d9619fc3c0e71fa 13 KB

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