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
|
```astro
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href={Astro.resolve('../styles/global.css')}>
|
<style global>
|
||||||
|
@import "../styles/global.css";
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -239,7 +239,9 @@ Lastly, add it to your Astro page (or layout template):
|
||||||
|
|
||||||
```astro
|
```astro
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href={Astro.resolve('../styles/global.css')}>
|
<style global>
|
||||||
|
@import "../styles/global.css";
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue