Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jantimon/html-webpack-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e2c6990e94b298ff66bcd885c9a03a78221479f6
Choose a base ref
...
head repository: jantimon/html-webpack-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: eb73905d4a0f031ded7a7d235d3fb2c761267cc0
Choose a head ref

Commits on Apr 16, 2018

  1. Fix confusing indentation

    felixrabe authored and jantimon committed Apr 16, 2018
    Copy the full SHA
    75eef88 View commit details

Commits on Apr 27, 2018

  1. correct readme

    riophae authored and jantimon committed Apr 27, 2018
    Copy the full SHA
    5ef3e3a View commit details
  2. Fix Typo

    pducks32 authored and jantimon committed Apr 27, 2018
    Copy the full SHA
    3ddd64e View commit details

Commits on May 1, 2018

  1. Add -loader suffix to handlerbars

    It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'handlebars-loader' instead of 'handlebars',
    see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed
    joshunger authored and jantimon committed May 1, 2018
    Copy the full SHA
    a3ef514 View commit details

Commits on May 3, 2018

  1. Update README with Tapable.hooks example (#941)

    Webpack v4 deprecates the use of `Tapable.plugin()`. This plugin was updated to use `Tapable.hooks`, but the example in the README was not.
    t-kelly authored and mastilver committed May 3, 2018
    Copy the full SHA
    b4312f9 View commit details

Commits on May 30, 2018

  1. chore(Add lock-bot):

    jantimon committed May 30, 2018
    Copy the full SHA
    3b9cd76 View commit details
  2. Update issue templates

    jantimon committed May 30, 2018
    Copy the full SHA
    77eb303 View commit details
  3. chore: Add stale config

    jantimon committed May 30, 2018
    Copy the full SHA
    ae52f5e View commit details

Commits on May 31, 2018

  1. Update lock bot

    jantimon authored May 31, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3c51d2c View commit details
  2. Update lock.yml

    jantimon authored May 31, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1b55838 View commit details

Commits on Jun 3, 2018

  1. fix(loader): switch to loaderUtils.getOptions

    BREAKING CHANGE: switch to loaderUtils getOptions
    jantimon committed Jun 3, 2018
    Copy the full SHA
    a0a0f0d View commit details
  2. fix(chunksorter): Don't sort chunks by default

    BREAKING CHANGE: Chunks aren't sorted anymore by default
    jantimon committed Jun 3, 2018
    Copy the full SHA
    22fb03f View commit details
  3. fix: Remove compilation.getStats() call for performance reasons

    BREAKING CHANGE: Template variable webpack was removed
    jantimon committed Jun 3, 2018
    Copy the full SHA
    7005a55 View commit details
  4. refactor: Drop support for Webpack 1-3 to use Webpack 4 apis

    BREAKING CHANGE: Dropped support for Webpack 1 - 3
    jantimon committed Jun 3, 2018
    Copy the full SHA
    47efdea View commit details
  5. Copy the full SHA
    b94e043 View commit details
  6. feat: support ES6 template string in default loader

    Only transpile EJS style `<%= name %>`, Close #950
    
    BREAKING CHANGE: Template strings inside templates are now disabled by default
    tommytroylin authored and jantimon committed Jun 3, 2018
    Copy the full SHA
    d6b65dd View commit details
  7. Copy the full SHA
    ee6a165 View commit details
  8. Copy the full SHA
    a6b8d2d View commit details
  9. Copy the full SHA
    6ae6f48 View commit details
  10. feat: Remove selfClosingTag

    BREAKING CHANGE: Remove selfClosingTag attribute
    jantimon committed Jun 3, 2018
    Copy the full SHA
    5d3d8e4 View commit details
  11. Copy the full SHA
    cc3bf49 View commit details
  12. feat: Remove type="text/javascript" from injected script tags

    See https://www.w3.org/TR/html5/scripting-1.html#attr-script-type “The default, which is used if the attribute is absent, is "text/javascript"”
    
    BREAKING CHANGE: The mimetype information "text/javascript" is removed from all generated script
    tags
    jantimon committed Jun 3, 2018
    Copy the full SHA
    b46bf67 View commit details
  13. feat: Simplify <meta> element and charset attribute

    See https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Obsolete_things_to_avoid
    
    BREAKING CHANGE: The default meta utf-8 declaration was changed to <meta charset="utf-8"/>
    jantimon committed Jun 3, 2018
    Copy the full SHA
    55313be View commit details
  14. refactor: Change the structure of the internal assets object

    Adapt structure in preparation for the webpack 4 entry api
    
    BREAKING CHANGE: 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}`
    jantimon committed Jun 3, 2018
    Copy the full SHA
    37db086 View commit details
  15. feat: Use webpack 4 entries api to extract asset information

    BREAKING CHANGES: Pass the entry point names to the custom sort function instead of chunk objects. Removed the alter`htmlWebpackPluginAlterChunks` hook. Changed the structure of the `assets` argument for all hooks.
    jantimon committed Jun 3, 2018
    Copy the full SHA
    342867e View commit details
  16. Copy the full SHA
    b6dec4b View commit details
  17. Copy the full SHA
    1063b04 View commit details
  18. Copy the full SHA
    2439012 View commit details
  19. Copy the full SHA
    c6f0f5a View commit details

Commits on Jun 4, 2018

  1. docs: Add alpha npm link

    jantimon authored Jun 4, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d4bc4c5 View commit details

Commits on Jun 8, 2018

  1. Delete package-lock.json

    jantimon authored Jun 8, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8440e4e View commit details

Commits on Jun 21, 2018

  1. Copy the full SHA
    f29ae88 View commit details
  2. Copy the full SHA
    bbc07a3 View commit details

Commits on Jul 8, 2018

  1. feat(hooks): Provide static getHook method for access to all html-web…

    …pack-plugin hooks (#995)
    
    BREAKING CHANGE: The html-webpack-plugin doesn't add its hooks to the compilation object anymore
    jantimon authored Jul 8, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    82b34a1 View commit details

Commits on Jul 10, 2018

  1. Copy the full SHA
    ae1f435 View commit details
  2. Copy the full SHA
    d7ec407 View commit details
  3. feat: Add default viewport meta tag for default template

    BREAKING CHANGE: The default template has now a predefined viewport meta tag
    
    fix #897, fix #978
    jantimon committed Jul 10, 2018
    Copy the full SHA
    302e39e View commit details

Commits on Jul 11, 2018

  1. Copy the full SHA
    dfe1d10 View commit details
  2. Copy the full SHA
    0ebcd17 View commit details
  3. Copy the full SHA
    1422664 View commit details
  4. Copy the full SHA
    27c3e72 View commit details
  5. Copy the full SHA
    2123d2a View commit details

Commits on Jul 13, 2018

  1. Copy the full SHA
    34d905d View commit details

Commits on Jul 16, 2018

  1. Copy the full SHA
    c1c50b2 View commit details
  2. Copy the full SHA
    cef1502 View commit details

Commits on Aug 25, 2018

  1. Copy the full SHA
    e9cd13e View commit details
  2. docs: add 'templateContent' option

    lightpohl authored and jantimon committed Aug 25, 2018
    Copy the full SHA
    55abb36 View commit details
  3. Copy the full SHA
    ae8233a View commit details

Commits on Aug 27, 2018

  1. refactor: Changed hook names and arguments - the hook order is 'befor…

    …eAssetTagGeneration', 'alterAssetTags', 'alterAssetTagGroups', 'afterTemplateExecution', 'beforeEmit', 'afterEmit'
    
    BREAKING CHANGE: Renamed beforeHtmlGeneration hook to beforeAssetTagGeneration
    BREAKING CHANGE: Renamed beforeHtmlProcessing hook to alterAssetTags
    BREAKING CHANGE: Renamed afterHtmlProcessing hook to beforeEmit
    jantimon committed Aug 27, 2018
    Copy the full SHA
    14b4456 View commit details
  2. Copy the full SHA
    aede8c1 View commit details
Showing with 7,565 additions and 16,859 deletions.
  1. +70 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +17 −0 .github/ISSUE_TEMPLATE/feature_request.md
  3. +14 −0 .github/lock.yml
  4. +16 −0 .github/stale.yml
  5. +4 −1 .gitignore
  6. +2 −10 .travis.yml
  7. +88 −0 CHANGELOG.md
  8. +309 −91 README.md
  9. +1 −1 default_index.ejs
  10. +8 −6 docs/template-option.md
  11. +20 −0 examples/README.md
  12. BIN examples/appcache/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  13. +0 −60 examples/appcache/dist/webpack-1/bundle.js
  14. +0 −1 examples/appcache/dist/webpack-1/index.html
  15. +0 −9 examples/appcache/dist/webpack-1/manifest.appcache
  16. BIN examples/appcache/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  17. +0 −86 examples/appcache/dist/webpack-2/bundle.js
  18. +0 −1 examples/appcache/dist/webpack-2/index.html
  19. +0 −9 examples/appcache/dist/webpack-2/manifest.appcache
  20. BIN examples/appcache/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  21. +0 −83 examples/appcache/dist/webpack-3/bundle.js
  22. +0 −1 examples/appcache/dist/webpack-3/index.html
  23. +0 −9 examples/appcache/dist/webpack-3/manifest.appcache
  24. +0 −3 examples/appcache/dist/webpack-3/styles.css
  25. +24 −12 examples/appcache/dist/webpack-4/bundle.js
  26. +1 −1 examples/appcache/dist/webpack-4/index.html
  27. +2 −2 examples/appcache/dist/webpack-4/manifest.appcache
  28. +1 −1 examples/appcache/dist/webpack-4/styles.css
  29. +4 −4 examples/appcache/webpack.config.js
  30. +2 −16 examples/build-examples.js
  31. +1 −0 examples/chunk-optimization/dist/webpack-4/entryA.html
  32. +171 −0 examples/chunk-optimization/dist/webpack-4/entryA.js
  33. +39 −0 examples/chunk-optimization/dist/webpack-4/entryA~entryB.js
  34. +1 −0 examples/chunk-optimization/dist/webpack-4/entryB.html
  35. +170 −0 examples/chunk-optimization/dist/webpack-4/entryB.js
  36. +1 −0 examples/chunk-optimization/dist/webpack-4/entryC.html
  37. +28 −0 examples/chunk-optimization/dist/webpack-4/libMath.js
  38. +13 −0 examples/chunk-optimization/dist/webpack-4/libText.js
  39. +596 −0 examples/chunk-optimization/dist/webpack-4/vendors~entryA~entryB.js
  40. +6 −0 examples/chunk-optimization/entryA.js
  41. +5 −0 examples/chunk-optimization/entryB.js
  42. +3 −0 examples/chunk-optimization/lib-concat.js
  43. +8 −0 examples/chunk-optimization/lib-multiply.js
  44. +3 −0 examples/chunk-optimization/lib-sum.js
  45. 0 examples/{jade-loader → chunk-optimization}/main.css
  46. +3 −0 examples/chunk-optimization/readme.md
  47. +56 −0 examples/chunk-optimization/webpack.config.js
  48. +26 −8 examples/{template-parameters/dist/webpack-2 → custom-insertion-position/dist/webpack-4}/bundle.js
  49. +12 −0 examples/custom-insertion-position/dist/webpack-4/index.html
  50. +3 −0 examples/custom-insertion-position/example.js
  51. +12 −0 examples/custom-insertion-position/index.ejs
  52. +24 −0 examples/custom-insertion-position/readme.md
  53. +25 −0 examples/custom-insertion-position/webpack.config.js
  54. BIN examples/custom-template/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  55. +0 −60 examples/custom-template/dist/webpack-1/bundle.js
  56. +0 −12 examples/custom-template/dist/webpack-1/index.html
  57. +0 −3 examples/custom-template/dist/webpack-1/styles.css
  58. BIN examples/custom-template/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  59. +0 −86 examples/custom-template/dist/webpack-2/bundle.js
  60. +0 −12 examples/custom-template/dist/webpack-2/index.html
  61. +0 −3 examples/custom-template/dist/webpack-2/styles.css
  62. BIN examples/custom-template/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  63. +0 −83 examples/custom-template/dist/webpack-3/bundle.js
  64. +0 −12 examples/custom-template/dist/webpack-3/index.html
  65. +0 −3 examples/custom-template/dist/webpack-3/styles.css
  66. +24 −12 examples/custom-template/dist/webpack-4/bundle.js
  67. +1 −12 examples/custom-template/dist/webpack-4/index.html
  68. +1 −1 examples/custom-template/dist/webpack-4/styles.css
  69. +4 −4 examples/custom-template/webpack.config.js
  70. +0 −402 examples/default/dist/webpack-1/bundle.js
  71. +0 −9 examples/default/dist/webpack-1/index.html
  72. +0 −428 examples/default/dist/webpack-2/bundle.js
  73. +0 −9 examples/default/dist/webpack-2/index.html
  74. +0 −425 examples/default/dist/webpack-3/bundle.js
  75. +0 −9 examples/default/dist/webpack-3/index.html
  76. +498 −195 examples/default/dist/webpack-4/bundle.js
  77. +1 −9 examples/default/dist/webpack-4/index.html
  78. +2 −1 examples/default/webpack.config.js
  79. +0 −60 examples/favicon/dist/webpack-1/bundle.js
  80. +0 −9 examples/favicon/dist/webpack-1/favicon.html
  81. +0 −3 examples/favicon/dist/webpack-1/styles.css
  82. +0 −86 examples/favicon/dist/webpack-2/bundle.js
  83. +0 −9 examples/favicon/dist/webpack-2/favicon.html
  84. +0 −3 examples/favicon/dist/webpack-2/styles.css
  85. +0 −83 examples/favicon/dist/webpack-3/bundle.js
  86. +0 −9 examples/favicon/dist/webpack-3/favicon.html
  87. BIN examples/favicon/dist/webpack-3/favicon.ico
  88. +0 −3 examples/favicon/dist/webpack-3/styles.css
  89. +24 −12 examples/favicon/dist/webpack-4/bundle.js
  90. +1 −9 examples/favicon/dist/webpack-4/favicon.html
  91. +1 −1 examples/favicon/dist/webpack-4/styles.css
  92. +5 −4 examples/favicon/webpack.config.js
  93. BIN examples/html-loader/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  94. +0 −11 examples/html-loader/dist/webpack-1/about.html
  95. +0 −60 examples/html-loader/dist/webpack-1/bundle.js
  96. BIN examples/html-loader/dist/webpack-1/favicon.ico
  97. +0 −11 examples/html-loader/dist/webpack-1/index.html
  98. +0 −3 examples/html-loader/dist/webpack-1/styles.css
  99. BIN examples/html-loader/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  100. +0 −11 examples/html-loader/dist/webpack-2/about.html
  101. +0 −86 examples/html-loader/dist/webpack-2/bundle.js
  102. BIN examples/html-loader/dist/webpack-2/favicon.ico
  103. +0 −11 examples/html-loader/dist/webpack-2/index.html
  104. +0 −3 examples/html-loader/dist/webpack-2/styles.css
  105. BIN examples/html-loader/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  106. +0 −11 examples/html-loader/dist/webpack-3/about.html
  107. +0 −83 examples/html-loader/dist/webpack-3/bundle.js
  108. BIN examples/html-loader/dist/webpack-3/favicon.ico
  109. +0 −11 examples/html-loader/dist/webpack-3/index.html
  110. +0 −3 examples/html-loader/dist/webpack-3/styles.css
  111. +1 −11 examples/html-loader/dist/webpack-4/about.html
  112. +24 −12 examples/html-loader/dist/webpack-4/bundle.js
  113. +1 −11 examples/html-loader/dist/webpack-4/index.html
  114. +1 −1 examples/html-loader/dist/webpack-4/styles.css
  115. +5 −4 examples/html-loader/webpack.config.js
  116. +0 −60 examples/inline/dist/webpack-1/bundle.js
  117. BIN examples/inline/dist/webpack-1/favicon.ico
  118. +0 −62 examples/inline/dist/webpack-1/index.html
  119. +0 −3 examples/inline/dist/webpack-1/styles.css
  120. +0 −87 examples/inline/dist/webpack-2/bundle.js
  121. BIN examples/inline/dist/webpack-2/favicon.ico
  122. +0 −89 examples/inline/dist/webpack-2/index.html
  123. +0 −3 examples/inline/dist/webpack-2/styles.css
  124. +0 −84 examples/inline/dist/webpack-3/bundle.js
  125. BIN examples/inline/dist/webpack-3/favicon.ico
  126. +0 −86 examples/inline/dist/webpack-3/index.html
  127. +0 −3 examples/inline/dist/webpack-3/styles.css
  128. +24 −12 examples/inline/dist/webpack-4/bundle.js
  129. +26 −14 examples/inline/dist/webpack-4/index.html
  130. +1 −1 examples/inline/dist/webpack-4/styles.css
  131. +3 −3 examples/inline/readme.md
  132. +2 −2 examples/inline/{template.jade → template.pug}
  133. +7 −7 examples/inline/webpack.config.js
  134. BIN examples/jade-loader/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  135. +0 −347 examples/jade-loader/dist/webpack-1/bundle.js
  136. BIN examples/jade-loader/dist/webpack-1/favicon.ico
  137. +0 −1 examples/jade-loader/dist/webpack-1/index.html
  138. +0 −3 examples/jade-loader/dist/webpack-1/styles.css
  139. BIN examples/jade-loader/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  140. +0 −372 examples/jade-loader/dist/webpack-2/bundle.js
  141. BIN examples/jade-loader/dist/webpack-2/favicon.ico
  142. +0 −1 examples/jade-loader/dist/webpack-2/index.html
  143. +0 −3 examples/jade-loader/dist/webpack-2/styles.css
  144. BIN examples/jade-loader/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  145. +0 −369 examples/jade-loader/dist/webpack-3/bundle.js
  146. BIN examples/jade-loader/dist/webpack-3/favicon.ico
  147. +0 −1 examples/jade-loader/dist/webpack-3/index.html
  148. +0 −3 examples/jade-loader/dist/webpack-3/styles.css
  149. BIN examples/jade-loader/dist/webpack-4/0714810ae3fb211173e2964249507195.png
  150. +0 −378 examples/jade-loader/dist/webpack-4/bundle.js
  151. BIN examples/jade-loader/dist/webpack-4/favicon.ico
  152. +0 −1 examples/jade-loader/dist/webpack-4/index.html
  153. +0 −3 examples/jade-loader/dist/webpack-4/styles.css
  154. BIN examples/jade-loader/favicon.ico
  155. +0 −4 examples/jade-loader/readme.md
  156. BIN examples/javascript-advanced/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  157. +0 −65 examples/javascript-advanced/dist/webpack-1/bundle.js
  158. +0 −2 examples/javascript-advanced/dist/webpack-1/index.html
  159. +0 −3 examples/javascript-advanced/dist/webpack-1/styles.css
  160. BIN examples/javascript-advanced/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  161. +0 −89 examples/javascript-advanced/dist/webpack-2/bundle.js
  162. +0 −2 examples/javascript-advanced/dist/webpack-2/index.html
  163. +0 −3 examples/javascript-advanced/dist/webpack-2/styles.css
  164. BIN examples/javascript-advanced/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  165. +0 −86 examples/javascript-advanced/dist/webpack-3/bundle.js
  166. +0 −2 examples/javascript-advanced/dist/webpack-3/index.html
  167. +0 −3 examples/javascript-advanced/dist/webpack-3/styles.css
  168. +27 −15 examples/javascript-advanced/dist/webpack-4/bundle.js
  169. +1 −2 examples/javascript-advanced/dist/webpack-4/index.html
  170. +1 −1 examples/javascript-advanced/dist/webpack-4/styles.css
  171. +5 −4 examples/javascript-advanced/webpack.config.js
  172. BIN examples/javascript/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  173. +0 −65 examples/javascript/dist/webpack-1/bundle.js
  174. +0 −2 examples/javascript/dist/webpack-1/index.html
  175. +0 −3 examples/javascript/dist/webpack-1/styles.css
  176. BIN examples/javascript/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  177. +0 −89 examples/javascript/dist/webpack-2/bundle.js
  178. +0 −2 examples/javascript/dist/webpack-2/index.html
  179. +0 −3 examples/javascript/dist/webpack-2/styles.css
  180. BIN examples/javascript/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  181. +0 −86 examples/javascript/dist/webpack-3/bundle.js
  182. +0 −2 examples/javascript/dist/webpack-3/index.html
  183. +0 −3 examples/javascript/dist/webpack-3/styles.css
  184. +27 −15 examples/javascript/dist/webpack-4/bundle.js
  185. +1 −2 examples/javascript/dist/webpack-4/index.html
  186. +1 −1 examples/javascript/dist/webpack-4/styles.css
  187. +4 −4 examples/javascript/webpack.config.js
  188. +387 −0 examples/pug-loader/dist/webpack-4/bundle.js
  189. BIN examples/{favicon/dist/webpack-1 → pug-loader/dist/webpack-4}/favicon.ico
  190. +1 −0 examples/pug-loader/dist/webpack-4/index.html
  191. +1 −1 examples/{appcache/dist/webpack-2 → pug-loader/dist/webpack-4}/styles.css
  192. +1 −1 examples/{jade-loader → pug-loader}/example.js
  193. BIN examples/{favicon/dist/webpack-2 → pug-loader}/favicon.ico
  194. BIN examples/{jade-loader → pug-loader}/logo.png
  195. 0 examples/{appcache/dist/webpack-1/styles.css → pug-loader/main.css}
  196. +4 −0 examples/pug-loader/readme.md
  197. +1 −1 examples/{jade-loader/template.jade → pug-loader/template.pug}
  198. 0 examples/{jade-loader/time.jade → pug-loader/time.pug}
  199. +8 −7 examples/{jade-loader → pug-loader}/webpack.config.js
  200. BIN examples/sort-manually/dist/webpack-1/0714810ae3fb211173e2964249507195.png
  201. +0 −60 examples/sort-manually/dist/webpack-1/a.js
  202. +0 −53 examples/sort-manually/dist/webpack-1/b.js
  203. +0 −53 examples/sort-manually/dist/webpack-1/c.js
  204. +0 −53 examples/sort-manually/dist/webpack-1/d.js
  205. +0 −53 examples/sort-manually/dist/webpack-1/e.js
  206. +0 −11 examples/sort-manually/dist/webpack-1/first-file.html
  207. +0 −11 examples/sort-manually/dist/webpack-1/second-file.html
  208. +0 −3 examples/sort-manually/dist/webpack-1/styles.css
  209. BIN examples/sort-manually/dist/webpack-2/0714810ae3fb211173e2964249507195.png
  210. +0 −86 examples/sort-manually/dist/webpack-2/a.js
  211. +0 −81 examples/sort-manually/dist/webpack-2/b.js
  212. +0 −81 examples/sort-manually/dist/webpack-2/c.js
  213. +0 −81 examples/sort-manually/dist/webpack-2/d.js
  214. +0 −81 examples/sort-manually/dist/webpack-2/e.js
  215. +0 −11 examples/sort-manually/dist/webpack-2/first-file.html
  216. +0 −11 examples/sort-manually/dist/webpack-2/second-file.html
  217. +0 −3 examples/sort-manually/dist/webpack-2/styles.css
  218. BIN examples/sort-manually/dist/webpack-3/0714810ae3fb211173e2964249507195.png
  219. +0 −85 examples/sort-manually/dist/webpack-3/a.js
  220. +0 −76 examples/sort-manually/dist/webpack-3/b.js
  221. +0 −78 examples/sort-manually/dist/webpack-3/c.js
  222. +0 −77 examples/sort-manually/dist/webpack-3/d.js
  223. +0 −78 examples/sort-manually/dist/webpack-3/e.js
  224. +0 −11 examples/sort-manually/dist/webpack-3/first-file.html
  225. +0 −11 examples/sort-manually/dist/webpack-3/second-file.html
  226. +0 −3 examples/sort-manually/dist/webpack-3/styles.css
  227. +29 −15 examples/sort-manually/dist/webpack-4/a.js
  228. +24 −11 examples/sort-manually/dist/webpack-4/b.js
  229. +26 −10 examples/sort-manually/dist/webpack-4/c.js
  230. +25 −11 examples/sort-manually/dist/webpack-4/d.js
  231. +26 −9 examples/sort-manually/dist/webpack-4/e.js
  232. +1 −11 examples/sort-manually/dist/webpack-4/first-file.html
  233. +1 −11 examples/sort-manually/dist/webpack-4/second-file.html
  234. +1 −1 examples/sort-manually/dist/webpack-4/styles.css
  235. +4 −4 examples/sort-manually/webpack.config.js
  236. +0 −53 examples/template-parameters/dist/webpack-1/bundle.js
  237. +0 −9 examples/template-parameters/dist/webpack-1/index.html
  238. +0 −9 examples/template-parameters/dist/webpack-2/index.html
  239. +0 −76 examples/template-parameters/dist/webpack-3/bundle.js
  240. +0 −9 examples/template-parameters/dist/webpack-3/index.html
  241. +20 −5 examples/template-parameters/dist/webpack-4/bundle.js
  242. +1 −9 examples/template-parameters/dist/webpack-4/index.html
  243. +1 −1 examples/template-parameters/index.ejs
  244. +13 −2 examples/template-parameters/webpack.config.js
  245. BIN flow.png
  246. +32 −0 flow.puml
  247. +737 −406 index.js
  248. +19 −118 lib/chunksorter.js
  249. +332 −101 lib/compiler.js
  250. +10 −2 lib/errors.js
  251. +106 −0 lib/hooks.js
  252. +71 −0 lib/html-tags.js
  253. +15 −16 lib/loader.js
  254. +11 −11 migration.md
  255. +0 −7,318 package-lock.json
  256. +42 −31 package.json
  257. +0 −1,751 spec/BasicSpec.js
  258. +0 −160 spec/CachingSpec.js
  259. +0 −116 spec/ExampleSpec.js
  260. +2,307 −0 spec/basic.spec.js
  261. +289 −0 spec/caching.spec.js
  262. +106 −0 spec/example.spec.js
  263. +2 −2 spec/fixtures/invalid.html
  264. +2 −2 spec/fixtures/legacy.html
  265. +9 −0 spec/fixtures/src/index.ejs
  266. +0 −9 spec/fixtures/template.jade
  267. +9 −0 spec/fixtures/template.pug
  268. +2 −2 spec/fixtures/test.html
  269. +2 −2 spec/fixtures/webpackconfig.html
  270. +89 −0 spec/hot.spec.js
  271. +37 −0 tsconfig.json
  272. +248 −0 typings.d.ts
70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
name: Bug report
about: Create a report to help us improve

---

## Expected behaviour

Tell us what you would expect the html-webpack-plugin should.

## Current behaviour

Tell us what the html-webpack-plugin does instead.

## Environment

Tell us which operating system you are using, as well as which versions of Node.js, npm, webpack, and html-webpack-plugin. Run the following to get it quickly:

```
node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
npm --version
npm ls webpack
npm ls html-webpack-plugin
```

### Config

Copy the minimal `webpack.config.js` to produce this issue:


```js
module.exports = {
entry: 'app.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
module: {
rules: [
...
]
}
plugins: [
new HtmlWebpackPlugin(),
...
]
}
```

Copy your template file if it is part of this issue:

```html
<!DOCTYPE html>
<html>
<head>
<title>My App</title>
</head>
<body>
</body>
</html>
```

## Relevant Links

- If your project is public, link to the repo so we can investigate directly.
- **BONUS POINTS:** Create a [minimal reproduction](http://stackoverflow.com/help/mcve) and upload it to GitHub. This will get you the fastest support.

## Additional context

Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
14 changes: 14 additions & 0 deletions .github/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Configuration for lock-threads - https://github.com/dessant/lock-threads

# Issues and pull requests with these labels will not be locked. Set to `[]` to disable
exemptLabels: []

# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false

# Comment to post before locking. Set to `false` to disable
lockComment: false

# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 30

16 changes: 16 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 15
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
**This issue had no activity for at least half a year.**
It's subject to automatic issue closing if there is no activity in the next 15 days.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/node_modules/
/dist/
npm-debug.log
/coverage/
npm-debug.*.log
yarn.lock
package-lock.json
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -3,17 +3,9 @@ node_js:
- stable
- lts/*
- 6.9
env:
- WEBPACK_VERSION=1 EXTRACT_PLUGIN_VERSION=1
- WEBPACK_VERSION=2 EXTRACT_PLUGIN_VERSION=2
- WEBPACK_VERSION=3 EXTRACT_PLUGIN_VERSION=3.0.0-beta.3
- WEBPACK_VERSION=4.0.0 EXTRACT_PLUGIN_VERSION=4.0.0-alpha.0
before_install:
- stty columns 120
install:
- npm install --ignore-scripts
- npm rm webpack
- npm rm extract-text-webpack-plugin
- npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_PLUGIN_VERSION --ignore-scripts || true
- travis_retry npm install --ignore-scripts
script:
- npm test
- travis_retry npm test
88 changes: 88 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,94 @@

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.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.2.0...v4.0.0) (2020-03-23)

The summary can be found in the [**release blog post**](https://dev.to/jantimon/html-webpack-plugin-4-has-been-released-125d).

### Bug Fixes

* Add dependencies from the child compilation to the main compilation ([27c3e72](https://github.com/jantimon/html-webpack-plugin/commit/27c3e727b073701bfc739859d8325435d27cbf35))
* 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))
* 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)
* 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)
* Drop @types/webpack dependency ([d4eb1c7](https://github.com/jantimon/html-webpack-plugin/commit/d4eb1c749316af3964126606fe6c70a233c30fef))
* Ignore foreign child compilers ([1422664](https://github.com/jantimon/html-webpack-plugin/commit/14226649aa1bbaf7b174bcacafdbe47d8ba6c851))
* Improve perfomance for appcache files ([b94e043](https://github.com/jantimon/html-webpack-plugin/commit/b94e0434f5dbb06ee2179e91ebaa2ce7801937e0))
* load script files before style files files in defer script loading mode ([97f9fb9](https://github.com/jantimon/html-webpack-plugin/commit/97f9fb9a68e4d3c3c9453296c352e831f7546937))
* Prevent chunks from beeing added multiple times ([d65b37d](https://github.com/jantimon/html-webpack-plugin/commit/d65b37d2c588047e0d81a38f4645fcdb3ead0b9e))
* 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)
* Remove compilation.getStats() call for performance reasons ([7005a55](https://github.com/jantimon/html-webpack-plugin/commit/7005a557529bee948c5ef0a1b8b44a1a41a28417))
* 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))
* 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)
* **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)
* rename `contenthash` to `templatehash` ([4c11c5d](https://github.com/jantimon/html-webpack-plugin/commit/4c11c5dfde9d87d71dce9cf51864648f8e42b912))
* Repair typings ([#1166](https://github.com/jantimon/html-webpack-plugin/issues/1166)) ([f4cb241](https://github.com/jantimon/html-webpack-plugin/commit/f4cb241157a9a1fed4721b1abc1f390b09595494))
* 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))
* 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))
* **chunksorter:** Don't sort chunks by default ([22fb03f](https://github.com/jantimon/html-webpack-plugin/commit/22fb03fb17fdb37d5ce6de00af154b5575a02d3a))
* **loader:** switch to loaderUtils.getOptions ([a0a0f0d](https://github.com/jantimon/html-webpack-plugin/commit/a0a0f0dc755fbc3249aa2e1d1c6a4dd307ab8e8a))
* **README:** adds a link to template option documentation ([f40aeae](https://github.com/jantimon/html-webpack-plugin/commit/f40aeae312af73c6c5263cd99e81069f41d3b699))
* **tests:** Upgrade webpack-recompilation-simulator ([dfe1d10](https://github.com/jantimon/html-webpack-plugin/commit/dfe1d10c4511b0da4354cacf79ca0d5ac7baf862))
* Update lodash to 4.17.10 ([cc3bf49](https://github.com/jantimon/html-webpack-plugin/commit/cc3bf4909605879993c22e3048ee520dbdc8fa49))


### Code Refactoring

* Change the structure of the internal assets object ([37db086](https://github.com/jantimon/html-webpack-plugin/commit/37db0868efdbf334a1b60003fe5bd376cfd8ae01))
* 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))
* Use Webpack 4 APIs ([47efdea](https://github.com/jantimon/html-webpack-plugin/commit/47efdeaf17806f7d4e26aefacc748a92077f904a))


### Features

* add `.toString` implementation to htmlTags to allow easier rendering ([34d8aa5](https://github.com/jantimon/html-webpack-plugin/commit/34d8aa572c7acc59c26f3b5d15bf489a07aa4c24))
* 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)
* Add defer script loading ([de315eb](https://github.com/jantimon/html-webpack-plugin/commit/de315eb98497f3e5f517d59dbbe120b48c9b8db9))
* Add support for relative publicPath ([dbbdd81](https://github.com/jantimon/html-webpack-plugin/commit/dbbdd81de570dd181ea0905a6445fdeb5a784912))
* 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))
* 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)
* Add support for the [contenthash] placeholder inside htm file names ([ae8233a](https://github.com/jantimon/html-webpack-plugin/commit/ae8233a04d4105b6e970feaa2c5e11c0b48fd4b7))
* 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)
* Allow to return async template parameters ([99f9362](https://github.com/jantimon/html-webpack-plugin/commit/99f9362703055baf0029b8852cb5339b6218829d))
* 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))
* Export major version of this plugin ([6ae6f48](https://github.com/jantimon/html-webpack-plugin/commit/6ae6f48ecf92b080809d68092ee8c6825edfe5a4))
* merge templateParameters with default template parameters ([1d66e53](https://github.com/jantimon/html-webpack-plugin/commit/1d66e5333bc2aeb8caadf96e572af756d3708d19))
* Provide a verbose error message if html minification failed ([7df269f](https://github.com/jantimon/html-webpack-plugin/commit/7df269fd2a840d0800cb259bd559edb0b766e7ab))
* **compiler:** Add file dependencies ([bbc07a3](https://github.com/jantimon/html-webpack-plugin/commit/bbc07a3a214e3b693e6c9e3d6404e146a0fc023a))
* **compiler:** Use a single compiler for multiple plugin instances ([f29ae88](https://github.com/jantimon/html-webpack-plugin/commit/f29ae886d7fad50e7fbb78ac7ff7d5bd9bc47f49))
* **compiler:** Use timestamps to verify cache validity ([0ebcd17](https://github.com/jantimon/html-webpack-plugin/commit/0ebcd1776132262b799f2814659f4d90c3f3c1b3))
* Remove selfClosingTag ([5d3d8e4](https://github.com/jantimon/html-webpack-plugin/commit/5d3d8e4b73b7b97dba8bdf5fe1ecf50598040b54))
* Remove type="text/javascript" from injected script tags ([b46bf67](https://github.com/jantimon/html-webpack-plugin/commit/b46bf67ae4492a12b60c42c7d26831e480522b49))
* Replace jade with pug in examples ([d7ec407](https://github.com/jantimon/html-webpack-plugin/commit/d7ec4078c85b3ed9c2ff84e10fe75392f26a6130))
* Switch from jasmine to jest ([ae1f435](https://github.com/jantimon/html-webpack-plugin/commit/ae1f43527945c8ae953c2ba549631f2d090e003a))
* **hooks:** Add a helper for easier hook access ([b6dec4b](https://github.com/jantimon/html-webpack-plugin/commit/b6dec4bf1072509282756e8d83ef6ee447485f3a))
* **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))
* Simplify <meta> element and charset attribute ([55313be](https://github.com/jantimon/html-webpack-plugin/commit/55313bee9b82ea79157085e48bba4fa2ebfef6a4))
* 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)
* Use jsdoc for static typing ([a6b8d2d](https://github.com/jantimon/html-webpack-plugin/commit/a6b8d2dcf3b1183d50589b869162b972ad32de4d))
* Use webpack 4 entries api to extract asset information ([342867e](https://github.com/jantimon/html-webpack-plugin/commit/342867e1edb7c2a8748b0aca396f160f0b13d42e))
* **html-tags:** Add a helper to create html-tags ([ee6a165](https://github.com/jantimon/html-webpack-plugin/commit/ee6a165425a6b47dff341fb651848ec5727d7f7e))


### BREAKING CHANGES

* **defaults:** Use src/index.ejs if no template option is set.
* **defaults:** The default template has now a predefined viewport meta tag
* **defaults:** The default meta utf-8 declaration was changed to <meta charset="utf-8"/>
* **hooks:** Renamed beforeHtmlGeneration hook to beforeAssetTagGeneration
* **hooks:** Renamed beforeHtmlProcessing hook to alterAssetTags
* **hooks:** Renamed afterHtmlProcessing hook to beforeEmit
* **hooks:** The html-webpack-plugin doesn't add its hooks to the compilation object anymore
* 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}`
* The mimetype information "text/javascript" is removed from all generated script
tags
* Remove selfClosingTag attribute
* Template strings inside templates are now disabled by default
* Dropped support for Webpack 1 - 3
* Template variable webpack was removed
* **chunksorter:** Chunks aren't sorted anymore by default


<a name="3.2.0"></a>
# [3.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.1.0...v3.2.0) (2018-04-03)

Loading