Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Archit Garg committed May 10, 2019
1 parent e7bed34 commit 0c6ab1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HtmlWebpackInjectorPlugin {
const bodyChunks = [];

chunks.forEach(chunk => {
if (chunk.attributes.src.includes("_head")) {
if (chunk.attributes.src && chunk.attributes.src.includes("_head")) {
headChunks.push(chunk);
} else {
bodyChunks.push(chunk);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html-webpack-injector",
"version": "1.0.4",
"version": "1.0.5",
"description": "Helps to inject chunks to head and body via HtmlWebpackPlugin",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit 0c6ab1a

Please sign in to comment.