Update doc move away from Astro.resolve on styles (#2402)
see also #2393
This commit is contained in:
parent
6ccae4a478
commit
672b831940
2 changed files with 6 additions and 2 deletions
|
@ -241,7 +241,9 @@ Füge die Datei deiner Astro-Seite (oder deiner Layout-Komponente) hinzu:
|
|||
|
||||
```astro
|
||||
<head>
|
||||
<link rel="stylesheet" href={Astro.resolve('../styles/global.css')}>
|
||||
<style global>
|
||||
@import "../styles/global.css";
|
||||
</style>
|
||||
</head>
|
||||
```
|
||||
|
||||
|
|
|
@ -239,7 +239,9 @@ Lastly, add it to your Astro page (or layout template):
|
|||
|
||||
```astro
|
||||
<head>
|
||||
<link rel="stylesheet" href={Astro.resolve('../styles/global.css')}>
|
||||
<style global>
|
||||
@import "../styles/global.css";
|
||||
</style>
|
||||
</head>
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue