You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a CSS is imported inside a layout, and then used by multiple pages in multiple subdirectories, this CSS gets the filename of the very first rendered page where the CSS file was needed.
I think a more defined name like the name of the layout or something not so random would be more clear?
You see in attached StackBlitz after astro build:
The CSS is named test-a.hash.css (first page) instead of default.hash.css (layout).
Even if this is not a major thing, it makes it hard to find sources of issues on already deployed sites.
What's the expected result?
A more "undefined" name for the global CSS. Like "hoisted" for the scripts. Or the name of the including layout.
What version of
astro
are you using?2.8.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome (latest), Safari (latest)
Describe the Bug
When a CSS is imported inside a layout, and then used by multiple pages in multiple subdirectories, this CSS gets the filename of the very first rendered page where the CSS file was needed.
I think a more defined name like the name of the layout or something not so random would be more clear?
You see in attached StackBlitz after
astro build
:The CSS is named
test-a.hash.css
(first page) instead ofdefault.hash.css
(layout).Even if this is not a major thing, it makes it hard to find sources of issues on already deployed sites.
What's the expected result?
A more "undefined" name for the global CSS. Like "hoisted" for the scripts. Or the name of the including layout.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-css-file-naming?file=README.md
Participation
The text was updated successfully, but these errors were encountered: