withastro/astro

Style missing when path case differs

Open

#14,013 建立於 2025年6月25日

在 GitHub 查看
 (5 留言) (0 反應) (1 負責人)TypeScript (59,282 star) (3,444 fork)batch import
- P3: minor bugfeat: devgood first issue

描述

Astro Info

Astro                    v5.10.1
Node                     v22.16.0
System                   Windows (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Steps to reproduce:

  1. Create a new project with minimal template (Path: D:\dev\astro-demo)

  2. Edit src/pages/index.astro, insert some style at bottom:

    <style>h1 { color: orange; }</style>
    
  3. Open a terminal and change path to d:\dev\astro-demo (note here)

  4. Run npm run dev and see in browser

What's the expected result?

h1 should be orange, but not. Then change path to case correct path, it becomes normal.

Link to Minimal Reproducible Example

https://stackblitz.com/abcd1234

Participation

  • I am willing to submit a pull request for this issue.

貢獻者指南

Style missing when path case differs · withastro/astro#14013 | Good First Issue