File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ The `html-webpack-plugin` provides [hooks](https://github.com/jantimon/html-webp
95
95
<h2 align =" center " >Usage</h2 >
96
96
97
97
The plugin will generate an HTML5 file for you that includes all your ` webpack `
98
- bundles in the body using ` script ` tags. Just add the plugin to your ` webpack `
98
+ bundles in the head using ` script ` tags. Just add the plugin to your ` webpack `
99
99
config as follows:
100
100
101
101
** webpack.config.js**
@@ -122,9 +122,9 @@ This will generate a file `dist/index.html` containing the following
122
122
<head >
123
123
<meta charset =" utf-8" >
124
124
<title >Webpack App</title >
125
+ <script defer src =" index_bundle.js" ></script >
125
126
</head >
126
127
<body >
127
- <script src =" index_bundle.js" ></script >
128
128
</body >
129
129
</html >
130
130
```
You can’t perform that action at this time.
0 commit comments