withastro/astro

Style missing when path case differs

已关闭

#14,013 创建于 2025年6月25日

 (5 条评论) (0 个反应) (1 位负责人)TypeScript (3,722 个派生)batch import
- P3: minor bugfeat: devgood first issue

仓库指标

星标
 (61,877 个星标)
PR 合并指标
 (平均合并 4天 23小时) (30 天内合并 197 个 PR)

描述

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.

贡献者指南