Skip to content

Commit

Permalink
fix: restore insert option functionality (#265)
Browse files Browse the repository at this point in the history
fixes #264
  • Loading branch information
medfreeman committed May 30, 2020
1 parent 88f2bb1 commit b164efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
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 b164efd

Please sign in to comment.