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
A tag object can be used to describe the tag to be injected and the location of the injection can be controlled by the parameters.
40
43
41
-
```js
44
+
```ts title="rsbuild.config.ts"
42
45
exportdefault {
43
46
output: {
44
47
assetPrefix: 'https://example.com/',
@@ -78,25 +81,25 @@ Enabling `publicPath` will splice the [output.assetPrefix](/config/output/asset-
78
81
79
82
You can also pass functions to those fields to control the path joining.
80
83
81
-
### Set tag insertion position
84
+
### Injection position
82
85
83
-
The final insertion position of the tag is determined by the `head` and `append` options, and two elements with the same configuration will be inserted into the same area and hold their relative positions to each other.
86
+
The final injection position of the tag is determined by the `head` and `append` options, and two elements with the same configuration will be inserted into the same area and hold their relative positions to each other.
84
87
85
-
-`append`: used to describe whether the tag is added to the end or beginning of the original tags
86
-
-`head`: used to describe whether to add this tag to the HTML `<head>`
88
+
-`append`: Defines the injection position of the current tag relative to existing tags, defaults to `true`
89
+
-`head`: Specifies whether to add the current tag to the HTML `<head>` element, defaults to `true` for element types allowed in the `<head>`, otherwise `false`
87
90
88
-
The final insertion position on the page is as follows:
91
+
The final injection position in HTML is as follows:
0 commit comments