Skip to content

Commit

Permalink
fix: restore insert option functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
medfreeman committed May 28, 2020
1 parent 88f2bb1 commit 648364c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class ExtractCssChunksPlugin {
])
: '',
insert
? 'insert(linkTag);'
? `var insert = ${insert};\ninsert(linkTag);`
: 'var head = document.getElementsByTagName("head")[0]; head.appendChild(linkTag)',
]),
'}).then(function() {',
Expand Down

0 comments on commit 648364c

Please sign in to comment.