Skip to content

Commit 0c6ab1a

Browse files
author
Archit Garg
committed
fixed minor bug
1 parent e7bed34 commit 0c6ab1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class HtmlWebpackInjectorPlugin {
1111
const bodyChunks = [];
1212

1313
chunks.forEach(chunk => {
14-
if (chunk.attributes.src.includes("_head")) {
14+
if (chunk.attributes.src && chunk.attributes.src.includes("_head")) {
1515
headChunks.push(chunk);
1616
} else {
1717
bodyChunks.push(chunk);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-webpack-injector",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Helps to inject chunks to head and body via HtmlWebpackPlugin",
55
"main": "index.js",
66
"keywords": [

0 commit comments

Comments
 (0)