Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit a5983a0

Browse files
docs: remove insert string option
1 parent 0b12920 commit a5983a0

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ module.exports = {
581581

582582
### insert
583583

584-
Type: `String|Function`
584+
Type: `Function`
585585
Default: `head`
586586

587587
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
590590

591591
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.
592592

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-
new ExtractCssChunksPlugin({
599-
insert: '#my-container',
600-
});
601-
```
602-
603-
A new `<link>` element will be appended to the `#my-container` element.
604-
605593
#### `insert` as a function
606594

607595
Allows to override default behavior and insert styles at any position.

0 commit comments

Comments
 (0)