Skip to content

Commit cb2bf43

Browse files
authored
docs: Update content-scripts.md
1 parent 1719d17 commit cb2bf43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/guide/essentials/content-scripts.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ outline: deep
44

55
# Content Scripts
66

7+
> To create a content script, see [Entrypoint Types](/guide/essentials/entrypoints#content-scripts).
8+
79
## Context
810

911
The first argument to a content script's `main` function is it's "context".
1012

1113
```ts
12-
// entrypoints/content.ts
14+
// entrypoints/example.content.ts
1315
export default defineContentScript({
1416
main(ctx) {},
1517
});
@@ -62,7 +64,7 @@ In regular web extensions, CSS for content scripts is usually a separate CSS fil
6264
In WXT, to add CSS to a content script, simply import the CSS file into your JS entrypoint, and WXT will automatically add the bundled CSS output to the `css` array.
6365

6466
```ts
65-
// entrypoints/content/index.ts
67+
// entrypoints/example.content/index.ts
6668
import './style.css';
6769

6870
export default defineContentScript({

0 commit comments

Comments
 (0)