We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bed34 commit 0c6ab1aCopy full SHA for 0c6ab1a
index.js
@@ -11,7 +11,7 @@ class HtmlWebpackInjectorPlugin {
11
const bodyChunks = [];
12
13
chunks.forEach(chunk => {
14
- if (chunk.attributes.src.includes("_head")) {
+ if (chunk.attributes.src && chunk.attributes.src.includes("_head")) {
15
headChunks.push(chunk);
16
} else {
17
bodyChunks.push(chunk);
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "html-webpack-injector",
3
- "version": "1.0.4",
+ "version": "1.0.5",
4
"description": "Helps to inject chunks to head and body via HtmlWebpackPlugin",
5
"main": "index.js",
6
"keywords": [
0 commit comments