|
1 | 1 | --- |
2 | 2 | name: Bug report |
3 | | -about: Create a report to help us improve |
| 3 | +about: Create a 🕷 report to help us improve |
4 | 4 |
|
5 | 5 | --- |
6 | 6 |
|
7 | | -## Expected behaviour |
| 7 | +<!-- If you deleting this template this issue is very likely to be closed --> |
8 | 8 |
|
9 | | -Tell us what you would expect the html-webpack-plugin should. |
| 9 | +## Current behaviour 💣 |
10 | 10 |
|
11 | | -## Current behaviour |
| 11 | +<!-- Tell us which problem you are facing which might be caused by a bug in the html-webpack-plugin --> |
12 | 12 |
|
13 | | -Tell us what the html-webpack-plugin does instead. |
| 13 | +## Expected behaviour ☀️ |
14 | 14 |
|
15 | | -## Environment |
| 15 | +<!-- If not included in current behaviour please explain what should happen instead --> |
16 | 16 |
|
17 | | -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: |
| 17 | +### Reproduction Example 👾 |
18 | 18 |
|
19 | | -``` |
20 | | -node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())" |
21 | | -npm --version |
22 | | -npm ls webpack |
23 | | -npm ls html-webpack-plugin |
24 | | -``` |
| 19 | +<!-- |
25 | 20 |
|
26 | | -### Config |
| 21 | +Please provide a minimal example how to reproduce your problem.. |
| 22 | +Delete all plugins which are unrelated |
| 23 | +Delete all loaders which are unrelated |
| 24 | +Delete the production webpack config if your bug happens on develop |
| 25 | +Delete the develop webpack config if your bug happens only on production |
27 | 26 |
|
28 | | -Copy the minimal `webpack.config.js` to produce this issue: |
| 27 | +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 |
| 28 | +--> |
29 | 29 |
|
| 30 | +## Environment 🖥 |
30 | 31 |
|
31 | | -```js |
32 | | -module.exports = { |
33 | | - entry: 'app.js', |
34 | | - output: { |
35 | | - path: 'dist', |
36 | | - filename: 'index_bundle.js' |
37 | | - }, |
38 | | - module: { |
39 | | - rules: [ |
40 | | - ... |
41 | | - ] |
42 | | - } |
43 | | - plugins: [ |
44 | | - new HtmlWebpackPlugin(), |
45 | | - ... |
46 | | - ] |
47 | | -} |
48 | | -``` |
49 | | - |
50 | | -Copy your template file if it is part of this issue: |
| 32 | +<!-- |
| 33 | +To help you we need to know which versions you using otherwise it is impossible to help you. |
| 34 | +Please run the following commands to see your current versions: |
51 | 35 |
|
52 | | -```html |
53 | | -<!DOCTYPE html> |
54 | | -<html> |
55 | | - <head> |
56 | | - <title>My App</title> |
57 | | - </head> |
58 | | - <body> |
59 | | - </body> |
60 | | -</html> |
61 | 36 | ``` |
| 37 | +node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())" |
| 38 | +npm --version |
| 39 | +npm ls webpack |
| 40 | +npm ls html-webpack-plugin |
| 41 | +``` |
| 42 | +--> |
62 | 43 |
|
63 | | -## Relevant Links |
64 | | - |
65 | | -- If your project is public, link to the repo so we can investigate directly. |
66 | | -- **BONUS POINTS:** Create a [minimal reproduction](http://stackoverflow.com/help/mcve) and upload it to GitHub. This will get you the fastest support. |
67 | | - |
68 | | -## Additional context |
69 | | - |
70 | | -Add any other context about the problem here. |
0 commit comments