Skip to content

Commit 9739718

Browse files
committed
docs: avoid match
1 parent e80b2fb commit 9739718

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/guide/api-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ return `export default import.meta.ROLLDOWN_FILE_URL_${referenceId} + '#frag'`
620620
`import.meta.ROLLDOWN_FILE_URL_<referenceId>` only works in JavaScript expression position. In CSS or HTML, use the `__VITE_ASSET__<referenceId>__` token instead, appending any query or hash right after it:
621621

622622
```css
623-
background: url(__VITE_ASSET__abc__#frag);
623+
background: url(__VITE_ASSET__<referenceId>__#frag);
624624
```
625625

626626
## Plugin Ordering

0 commit comments

Comments
 (0)