File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -377,9 +377,9 @@ class MiniCssExtractPlugin {
377
377
'}' ,
378
378
] )
379
379
: '' ,
380
- `var insert = ${ insert } ;` ,
381
- `if (insert) { insert(linkTag); }` ,
382
- `else { var head = document.getElementsByTagName("head")[0]; head.appendChild(linkTag);} ` ,
380
+ insert
381
+ ? ' insert(linkTag);'
382
+ : ' var head = document.getElementsByTagName("head")[0]; head.appendChild(linkTag)' ,
383
383
] ) ,
384
384
'}).then(function() {' ,
385
385
Template . indent ( [ 'installedCssChunks[chunkId] = 0;' ] ) ,
Original file line number Diff line number Diff line change 16
16
},
17
17
"insert" : {
18
18
"description" : " Inserts `<link>` at the given position (https://github.com/faceyspacey/extract-css-chunks-webpack-pluginn#insert)." ,
19
- "anyOf" : [
20
- {
21
- "type" : " string"
22
- },
23
- {
24
- "instanceof" : " Function"
25
- }
26
- ]
19
+ "instanceof" : " Function"
27
20
}
28
21
}
29
22
}
You can’t perform that action at this time.
0 commit comments