Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated CSS files from layouts are named after pages instead of layouts #13132

Closed
1 task
pippaine opened this issue Feb 4, 2025 · 0 comments
Closed
1 task
Labels
needs triage Issue needs to be triaged

Comments

@pippaine
Copy link

pippaine commented Feb 4, 2025

Astro Info

Astro                    v5.2.3
Node                     v22.11.0
System                   Linux (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             none

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

No response

Describe the Bug

Upon running pnpm run build && pnpm run preview and accessing http://localhost:4321/, two network requests are made:

  • http://localhost:4321/_astro/index.jXlbHC1O.css containing index page styles
  • http://localhost:4321/_astro/privacy-policy.DGMEhcaH.css containing Base.astro styles

The Base.astro styles are incorrectly labelled as "privacy-policy" in the filename.

What's the expected result?

The styles from Base.astro should be in a CSS file named appropriately for Base.astro.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-6fswqclf

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants