You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1-13Lines changed: 1 addition & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -581,7 +581,7 @@ module.exports = {
581
581
582
582
### insert
583
583
584
-
Type: `String|Function`
584
+
Type: `Function`
585
585
Default: `head`
586
586
587
587
By default, the `extract-css-chunks-plugin` appends styles (`<link>` elements) to `document.head` of the current `window`.
@@ -590,18 +590,6 @@ However in some circumstances it might be necessary to have finer control over t
590
590
591
591
If you target an [iframe](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement) make sure that the parent document has sufficient access rights to reach into the frame document and append elements to it.
592
592
593
-
#### `insert` as a string
594
-
595
-
Allows to configure a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector) that will be used to find the element where to append the styles (`link` elements).
596
-
597
-
```js
598
-
newExtractCssChunksPlugin({
599
-
insert:'#my-container',
600
-
});
601
-
```
602
-
603
-
A new `<link>` element will be appended to the `#my-container` element.
604
-
605
593
#### `insert` as a function
606
594
607
595
Allows to override default behavior and insert styles at any position.
0 commit comments