Skip to content

Style missing when path case differs #14013

@aoisummer

Description

@aoisummer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P3: minor bugAn edge case that only affects very specific usage (priority)feat: devRelated to `astro dev` CLI command (scope)good first issueGood for newcomers. If you need additional guidance, feel free to post in #contribute on Discord

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions