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: 298635f4b3fb19fe920b1e0b982b61af0f31239d
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: 74fae99c1294c01b71c8ea082fe1557cb5375322
Choose a head ref

Commits on Dec 13, 2018

  1. chore: Release 4.0.0-beta.5

    jantimon committed Dec 13, 2018
    Copy the full SHA
    342c4e8 View commit details

Commits on Jan 11, 2019

  1. feat: Add typings to package.json

    See #1132
    wingrunr21 authored and jantimon committed Jan 11, 2019
    Copy the full SHA
    a524e8f View commit details

Commits on Feb 3, 2019

  1. Copy the full SHA
    56037a6 View commit details
  2. Copy the full SHA
    267e0e0 View commit details

Commits on Feb 16, 2019

  1. fix: Repair typings (#1166)

    jantimon authored Feb 16, 2019
    Copy the full SHA
    f4cb241 View commit details

Commits on Feb 17, 2019

  1. feat: Add support for <base> tag (#1160)

    atstp authored and jantimon committed Feb 17, 2019
    Copy the full SHA
    c5d4b86 View commit details
  2. Copy the full SHA
    d4eb1c7 View commit details

Commits on Mar 22, 2019

  1. fix: Use src/index.ejs by default if present (#1167)

    BREAKING CHANGE: Use src/index.ejs if no template option is set.
    jantimon authored Mar 22, 2019
    Copy the full SHA
    c27e5e4 View commit details

Commits on Mar 28, 2019

  1. Copy the full SHA
    2546551 View commit details

Commits on May 4, 2019

  1. chore: Update dependencies

    AviVahl authored and jantimon committed May 4, 2019
    Copy the full SHA
    38db64a View commit details

Commits on May 12, 2019

  1. added package for supporting issue #1158

    - #1158
    
    This package solves 
    #381, #818, #667, #624
    thearchitgarg authored and jantimon committed May 12, 2019
    Copy the full SHA
    8b9fb70 View commit details
  2. Added link and description for nomodule-plugin

    Created a new plugin to help limit executed file size.
    Adam Yost authored and jantimon committed May 12, 2019
    Copy the full SHA
    c02def8 View commit details
  3. renamed plugin

    Adam Yost authored and jantimon committed May 12, 2019
    Copy the full SHA
    7fa6aa8 View commit details
  4. Copy the full SHA
    17fbb30 View commit details

Commits on May 22, 2019

  1. Example README.md

    TroyTae authored and jantimon committed May 22, 2019
    Copy the full SHA
    895db29 View commit details

Commits on Jul 7, 2019

  1. Copy the full SHA
    a2a259a View commit details
  2. Fix migration.md

    Fix migration.md by adding `module.rules` rather than `module.loaders` and `pug-loader` rather than just `pug`.
    AhmedElaguab authored and jantimon committed Jul 7, 2019
    Copy the full SHA
    a18f809 View commit details

Commits on Jul 9, 2019

  1. Fix tiny typo

    Hey noticed a tiny typo in the comment.
    "as aminimalistic loader" => "as a minimalistic loader"
    adamsanderson authored and jantimon committed Jul 9, 2019
    Copy the full SHA
    0217b04 View commit details
  2. Update README.md

    hg-pyun authored and jantimon committed Jul 9, 2019
    Copy the full SHA
    d1bcd95 View commit details
  3. Copy the full SHA
    7f21910 View commit details
  4. chore: Adjust speed limit

    jantimon committed Jul 9, 2019
    Copy the full SHA
    5acac51 View commit details

Commits on Jul 16, 2019

  1. Copy the full SHA
    8b7255f View commit details

Commits on Jul 18, 2019

  1. fix: Add typing for assets(Close #1243)

    Austaras authored and jantimon committed Jul 18, 2019
    Copy the full SHA
    9fef060 View commit details
  2. Copy the full SHA
    62890be View commit details
  3. chore: publish 4.0.0-beta.8

    jantimon committed Jul 18, 2019
    Copy the full SHA
    075473d View commit details

Commits on Jul 23, 2019

  1. 1
    Copy the full SHA
    34d8aa5 View commit details

Commits on Aug 7, 2019

  1. Copy the full SHA
    35a1541 View commit details

Commits on Sep 9, 2019

  1. Copy the full SHA
    6de319b View commit details

Commits on Sep 24, 2019

  1. Fix README typo

    Had "inside.ejs" instead of "index.ejs"
    ttous authored and jantimon committed Sep 24, 2019
    Copy the full SHA
    655cbcd View commit details

Commits on Nov 11, 2019

  1. Copy the full SHA
    c66766c View commit details
  2. chore: Release 4.0.0-beta.9

    jantimon committed Nov 11, 2019
    Copy the full SHA
    2595a79 View commit details
  3. Copy the full SHA
    a2ad30a View commit details
  4. chore: Release 4.0.0-beta.10

    jantimon committed Nov 11, 2019
    Copy the full SHA
    f4eafdc View commit details
  5. Copy the full SHA
    24bf1b5 View commit details
  6. Copy the full SHA
    de22fc2 View commit details
  7. Copy the full SHA
    2549557 View commit details
  8. chore: Release 4.0.0-beta.11

    jantimon committed Nov 11, 2019
    Copy the full SHA
    bf017f3 View commit details

Commits on Jan 2, 2020

  1. Copy the full SHA
    40b410e View commit details
  2. Copy the full SHA
    a195c34 View commit details

Commits on Jan 28, 2020

  1. Fix broken links in examples

    hrs-o authored and jantimon committed Jan 28, 2020
    Copy the full SHA
    096a760 View commit details

Commits on Feb 6, 2020

  1. Fix typo in template option docts

    of -> on
    tomquirk authored and jantimon committed Feb 6, 2020
    Copy the full SHA
    dfb98e7 View commit details

Commits on Mar 17, 2020

  1. Copy the full SHA
    1d66e53 View commit details
  2. Copy the full SHA
    7df269f View commit details
  3. Copy the full SHA
    de315eb View commit details
  4. Copy the full SHA
    e448b5d View commit details
  5. Copy the full SHA
    e97ce17 View commit details
  6. Copy the full SHA
    97f9fb9 View commit details

Commits on Mar 18, 2020

  1. Copy the full SHA
    a1a37cf View commit details

Commits on Mar 21, 2020

  1. Add typing for getHooks

    chenxsan authored and jantimon committed Mar 21, 2020
    Copy the full SHA
    42a6d4a View commit details

Commits on Mar 23, 2020

  1. chore(release): 4.0.0

    jantimon committed Mar 23, 2020
    Copy the full SHA
    eb73905 View commit details
Showing with 5,718 additions and 4,603 deletions.
  1. +12 −0 .github/FUNDING.yml
  2. +25 −52 .github/ISSUE_TEMPLATE/bug_report.md
  3. +34 −0 .github/workflows/main.yml
  4. +1 −0 .gitignore
  5. +1 −1 .node-version
  6. +0 −11 .travis.yml
  7. +248 −1 CHANGELOG.md
  8. +142 −65 README.md
  9. +0 −23 appveyor.yml
  10. +10 −9 docs/template-option.md
  11. +19 −0 examples/README.md
  12. +0 −104 examples/appcache/dist/webpack-4/bundle.js
  13. +0 −1 examples/appcache/dist/webpack-4/index.html
  14. +0 −9 examples/appcache/dist/webpack-4/manifest.appcache
  15. +0 −34 examples/appcache/webpack.config.js
  16. +1 −1 examples/build-examples.js
  17. +0 −1 examples/chunk-optimization/dist/webpack-4/entryA.html
  18. +0 −170 examples/chunk-optimization/dist/webpack-4/entryA.js
  19. +0 −43 examples/chunk-optimization/dist/webpack-4/entryA~entryB.js
  20. +0 −1 examples/chunk-optimization/dist/webpack-4/entryB.html
  21. +0 −169 examples/chunk-optimization/dist/webpack-4/entryB.js
  22. +0 −1 examples/chunk-optimization/dist/webpack-4/entryC.html
  23. +0 −13 examples/chunk-optimization/dist/webpack-4/libText.js
  24. +0 −585 examples/chunk-optimization/dist/webpack-4/vendors~entryA~entryB.js
  25. +352 −0 examples/chunk-optimization/dist/webpack-5/219.js
  26. +50 −0 examples/chunk-optimization/dist/webpack-5/965.js
  27. +1 −0 examples/chunk-optimization/dist/webpack-5/entryA.html
  28. +182 −0 examples/chunk-optimization/dist/webpack-5/entryA.js
  29. +1 −0 examples/chunk-optimization/dist/webpack-5/entryB.html
  30. +181 −0 examples/chunk-optimization/dist/webpack-5/entryB.js
  31. +1 −0 examples/chunk-optimization/dist/webpack-5/entryC.html
  32. +6 −6 examples/chunk-optimization/dist/{webpack-4 → webpack-5}/libMath.js
  33. +13 −0 examples/chunk-optimization/dist/webpack-5/libText.js
  34. +2 −2 examples/chunk-optimization/webpack.config.js
  35. +7 −0 examples/custom-insertion-position/dist/webpack-5/bundle.js
  36. +12 −0 examples/custom-insertion-position/dist/webpack-5/index.html
  37. +3 −0 examples/custom-insertion-position/example.js
  38. +12 −0 examples/custom-insertion-position/index.ejs
  39. +24 −0 examples/custom-insertion-position/readme.md
  40. +25 −0 examples/custom-insertion-position/webpack.config.js
  41. +0 −104 examples/custom-template/dist/webpack-4/bundle.js
  42. +0 −1 examples/custom-template/dist/webpack-4/index.html
  43. BIN ...fb211173e2964249507195.png → custom-template/dist/webpack-5/55b19870aff2e53d1fb1a258c1032fbf.png}
  44. +61 −0 examples/custom-template/dist/webpack-5/bundle.js
  45. +1 −0 examples/custom-template/dist/webpack-5/index.html
  46. 0 examples/{appcache/dist/webpack-4 → custom-template/dist/webpack-5}/styles.css
  47. +0 −718 examples/default/dist/webpack-4/bundle.js
  48. +476 −0 examples/default/dist/webpack-5/bundle.js
  49. +1 −1 examples/default/dist/{webpack-4 → webpack-5}/index.html
  50. +1 −1 examples/default/webpack.config.js
  51. +0 −104 examples/favicon/dist/webpack-4/bundle.js
  52. +0 −1 examples/favicon/dist/webpack-4/favicon.html
  53. +61 −0 examples/favicon/dist/webpack-5/bundle.js
  54. +1 −0 examples/favicon/dist/webpack-5/favicon.html
  55. BIN examples/favicon/dist/{webpack-4 → webpack-5}/favicon.ico
  56. 0 examples/{custom-template/dist/webpack-4 → favicon/dist/webpack-5}/styles.css
  57. +0 −1 examples/html-loader/dist/webpack-4/about.html
  58. +0 −104 examples/html-loader/dist/webpack-4/bundle.js
  59. +0 −1 examples/html-loader/dist/webpack-4/index.html
  60. BIN examples/{appcache/logo.png → html-loader/dist/webpack-5/55b19870aff2e53d1fb1a258c1032fbf.png}
  61. +1 −0 examples/html-loader/dist/webpack-5/about.html
  62. +61 −0 examples/html-loader/dist/webpack-5/bundle.js
  63. BIN examples/html-loader/dist/{webpack-4 → webpack-5}/favicon.ico
  64. +1 −0 examples/html-loader/dist/webpack-5/index.html
  65. 0 examples/{favicon/dist/webpack-4 → html-loader/dist/webpack-5}/styles.css
  66. +0 −105 examples/inline/dist/webpack-4/bundle.js
  67. +0 −107 examples/inline/dist/webpack-4/index.html
  68. +61 −0 examples/inline/dist/webpack-5/bundle.js
  69. BIN examples/inline/dist/{webpack-4 → webpack-5}/favicon.ico
  70. +63 −0 examples/inline/dist/webpack-5/index.html
  71. 0 examples/{html-loader/dist/webpack-4 → inline/dist/webpack-5}/styles.css
  72. +0 −107 examples/javascript-advanced/dist/webpack-4/bundle.js
  73. +0 −1 examples/javascript-advanced/dist/webpack-4/index.html
  74. BIN ...1173e2964249507195.png → javascript-advanced/dist/webpack-5/55b19870aff2e53d1fb1a258c1032fbf.png}
  75. +71 −0 examples/javascript-advanced/dist/webpack-5/bundle.js
  76. +1 −0 examples/javascript-advanced/dist/webpack-5/index.html
  77. 0 examples/{inline/dist/webpack-4 → javascript-advanced/dist/webpack-5}/styles.css
  78. +0 −107 examples/javascript/dist/webpack-4/bundle.js
  79. +0 −1 examples/javascript/dist/webpack-4/index.html
  80. BIN ...pack-4/0714810ae3fb211173e2964249507195.png → javascript/dist/webpack-5/55b19870aff2e53d1fb1.png}
  81. +82 −0 examples/javascript/dist/webpack-5/bundle.js
  82. +1 −0 examples/javascript/dist/webpack-5/index.html
  83. 0 examples/{javascript-advanced/dist/webpack-4 → javascript/dist/webpack-5}/styles.css
  84. +1 −3 examples/javascript/webpack.config.js
  85. +1 −0 examples/multi-page/dist/webpack-5/first.html
  86. +476 −0 examples/multi-page/dist/webpack-5/first.js
  87. +1 −0 examples/multi-page/dist/webpack-5/second.html
  88. +476 −0 examples/multi-page/dist/webpack-5/second.js
  89. 0 examples/{appcache/example.js → multi-page/first.js}
  90. 0 examples/{appcache → multi-page}/main.css
  91. +3 −0 examples/multi-page/readme.md
  92. +4 −0 examples/multi-page/second.js
  93. +27 −0 examples/multi-page/webpack.config.js
  94. +0 −1 examples/pug-loader/dist/webpack-4/index.html
  95. +75 −114 examples/pug-loader/dist/{webpack-4 → webpack-5}/bundle.js
  96. BIN examples/pug-loader/dist/{webpack-4 → webpack-5}/favicon.ico
  97. +1 −0 examples/pug-loader/dist/webpack-5/index.html
  98. 0 examples/{javascript/dist/webpack-4 → pug-loader/dist/webpack-5}/styles.css
  99. BIN examples/sort-manually/dist/webpack-4/0714810ae3fb211173e2964249507195.png
  100. +0 −106 examples/sort-manually/dist/webpack-4/a.js
  101. +0 −97 examples/sort-manually/dist/webpack-4/b.js
  102. +0 −99 examples/sort-manually/dist/webpack-4/c.js
  103. +0 −98 examples/sort-manually/dist/webpack-4/d.js
  104. +0 −99 examples/sort-manually/dist/webpack-4/e.js
  105. +0 −1 examples/sort-manually/dist/webpack-4/first-file.html
  106. +0 −1 examples/sort-manually/dist/webpack-4/second-file.html
  107. +0 −3 examples/sort-manually/dist/webpack-4/styles.css
  108. BIN ...e3fb211173e2964249507195.png → sort-manually/dist/webpack-5/55b19870aff2e53d1fb1a258c1032fbf.png}
  109. +61 −0 examples/sort-manually/dist/webpack-5/a.js
  110. +7 −0 examples/sort-manually/dist/webpack-5/b.js
  111. +7 −0 examples/sort-manually/dist/webpack-5/c.js
  112. +7 −0 examples/sort-manually/dist/webpack-5/d.js
  113. +7 −0 examples/sort-manually/dist/webpack-5/e.js
  114. +1 −0 examples/sort-manually/dist/webpack-5/first-file.html
  115. +1 −0 examples/sort-manually/dist/webpack-5/second-file.html
  116. 0 examples/{pug-loader/dist/webpack-4 → sort-manually/dist/webpack-5}/styles.css
  117. +0 −97 examples/template-parameters/dist/webpack-4/bundle.js
  118. +0 −1 examples/template-parameters/dist/webpack-4/index.html
  119. +7 −0 examples/template-parameters/dist/webpack-5/bundle.js
  120. +1 −0 examples/template-parameters/dist/webpack-5/index.html
  121. +15 −0 examples/template-parameters/webpack.config.js
  122. +579 −436 index.js
  123. +379 −0 lib/cached-child-compiler.js
  124. +196 −0 lib/child-compiler.js
  125. +0 −356 lib/compiler.js
  126. +71 −0 lib/file-watcher-api.js
  127. +8 −16 lib/hooks.js
  128. +33 −7 lib/html-tags.js
  129. +4 −3 lib/loader.js
  130. +4 −4 migration.md
  131. +31 −26 package.json
  132. +637 −144 spec/basic.spec.js
  133. +25 −22 spec/caching.spec.js
  134. +5 −6 spec/example.spec.js
  135. +4 −4 examples/appcache/template.html → spec/fixtures/logo.html
  136. BIN examples/javascript/dist/webpack-4/0714810ae3fb211173e2964249507195.png → spec/fixtures/logo.png
  137. +9 −0 spec/fixtures/src/index.ejs
  138. +2 −3 spec/hot.spec.js
  139. +3 −1 tsconfig.json
  140. +240 −89 typings.d.ts
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: html-webpack-plugin
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
77 changes: 25 additions & 52 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,43 @@
---
name: Bug report
about: Create a report to help us improve
about: Create a 🕷 report to help us improve

---

## Expected behaviour
<!-- If you deleting this template this issue is very likely to be closed -->

Tell us what you would expect the html-webpack-plugin should.
## Current behaviour 💣

## Current behaviour
<!-- Tell us which problem you are facing which might be caused by a bug in the html-webpack-plugin -->

Tell us what the html-webpack-plugin does instead.
## Expected behaviour ☀️

## Environment
<!-- If not included in current behaviour please explain what should happen instead -->

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:
### Reproduction Example 👾

```
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
Please provide a minimal example how to reproduce your problem..
Delete all plugins which are unrelated
Delete all loaders which are unrelated
Delete the production webpack config if your bug happens on develop
Delete the develop webpack config if your bug happens only on production
Copy the minimal `webpack.config.js` to produce this issue:
Feel free to use this codebox template as a starting point: https://codesandbox.io/s/html-webpack-plugin-5x-alpha-d37s2?file=/webpack.config.js
-->

## Environment 🖥

```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:
<!--
To help you we need to know which versions you using otherwise it is impossible to help you.
Please run the following commands to see your current versions:
```html
<!DOCTYPE html>
<html>
<head>
<title>My App</title>
</head>
<body>
</body>
</html>
```
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
```
-->

## 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.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on: [push]
jobs:
build:
name: test Node ${{ matrix.node }} Webpack ${{ matrix.webpack }} ${{ matrix.os }}
timeout-minutes: 15

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['10.x', '12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
webpack: ['5']

steps:
- name: LF
run: git config --global core.autocrlf false

- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: npm install --ignore-scripts --force --legacy-peer-deps

- name: Install Webpack ${{ matrix.webpack }}
run: npm install --ignore-scripts --force --legacy-peer-deps webpack@${{ matrix.webpack }}

- name: Test
run: npm test -- --forceExit || npm test -- --forceExit || npm test -- --forceExit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@
npm-debug.*.log
yarn.lock
package-lock.json
npm-debug.log.*
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.11.5
10.13.0
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

Loading