|
| 1 | +<!-- CLICK "Preview" FOR INSTRUCTIONS IN A MORE READABLE FORMAT --> |
| 2 | + |
| 3 | +## Prerequisites |
| 4 | + |
| 5 | +- We realize there is a lot of data requested here. We ask only that you do your best to provide as much information as possible so we can better help you. |
| 6 | +- Support questions are better asked in one of the following locations: |
| 7 | + - [Stack Overflow](http://stackoverflow.com/questions/tagged/html-webpack-plugin) |
| 8 | +- Ensure the issue isn't already reported. |
| 9 | +- Should be reproducible with the latest version of `html-webpack-plugin`. |
| 10 | + - (Ensure `npm ls html-webpack-plugin` matches ) |
| 11 | + |
| 12 | +*Delete the above section and the instructions in the sections below before submitting* |
| 13 | + |
| 14 | + |
| 15 | +## Description |
| 16 | + |
| 17 | +If this is a feature request, explain why it should be added. Specific use-cases are best. |
| 18 | + |
| 19 | +For bug reports, please provide as much *relevant* info as possible. |
| 20 | + |
| 21 | +### Error Message & Stack Trace |
| 22 | + |
| 23 | +``` |
| 24 | +COPY THE ERROR MESSAGE, INCLUDING STACK TRACE HERE |
| 25 | +``` |
| 26 | + |
| 27 | +### Config |
| 28 | + |
| 29 | +Copy the relevant section from `webpack.config.js`: |
| 30 | + |
| 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: |
| 51 | + |
| 52 | +```html |
| 53 | +<!DOCTYPE html> |
| 54 | +<html> |
| 55 | + <head> |
| 56 | + <title>My App</title> |
| 57 | + </head> |
| 58 | + <body> |
| 59 | + </body> |
| 60 | +</html> |
| 61 | +``` |
| 62 | + |
| 63 | + |
| 64 | +## Relevant Links |
| 65 | + |
| 66 | +- If your project is public, link to the repo so we can investigate directly. |
| 67 | +- **BONUS POINTS:** Create a [minimal reproduction](http://stackoverflow.com/help/mcve) and upload it to GitHub. This will get you the fastest support. |
| 68 | + |
| 69 | + |
| 70 | +## Environment |
| 71 | + |
| 72 | +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: |
| 73 | + |
| 74 | +``` |
| 75 | +node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())" |
| 76 | +npm --version |
| 77 | +npm ls webpack |
| 78 | +npm ls html-webpack-plugin |
| 79 | +``` |
0 commit comments