Update doc move away from Astro.resolve on styles (#2402)

see also #2393
This commit is contained in:
Jang Rush 2022-01-18 21:25:26 +08:00 committed by GitHub
parent 6ccae4a478
commit 672b831940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -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>
```

View file

@ -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>
```