-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
"Shorter CSS naming algorithm" update causes breaking changes in projects that do not use output hashes #5134
Comments
Same to me with my repo https://github.com/papyrs/kit Config
Output with astro v1.2.5
Output with astro v1.6.2
Note that css is missing - is not bundled at all. |
Oh no, so sorry to hear that. Our new algorithm does include a hash, so I'm unsure of why exactly it causes this breakage... |
Oh, maybe I'm confused. Are you saying that you are outputting to omit the hash and that is the reason it breaks? |
Yes; when outputting without hashes, files that used to exist via the previous naming algorithm are no longer present. With the new algorithm, said files end up using |
That makes me sense, out of curiosity, why are you omitting the hash? Just for the aesthetic? We could probably detect that the hash is not being used and omit using the longer algorithm I suppose. |
In this particular case, I'm doing it to reduce noise in my Git workflow: I could also see it being useful when using tooling that operates on the files post-build, so that files can be referenced consistently. |
I omit the hash and have a constant name because my users generate full html pages - their blogs - with my editor. In other words I kind of use Astro to generate HTML templates . e.g. a user publish a blog post Of course agree that's not the most common use case 😁 |
Ok thanks I'm going to fix this soon. |
What version of
astro
are you using?1.5.2
Are you using an SSR adapter? If so, which one?
no
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
After upgrading from
1.3.0
to1.5.2
, I noticed that an issue with missing CSS was introduced inastro build
.It seems to be a result of #5036
When using this configuration:
the build output with
1.3.0
was:The current build output with
1.5.2
is:and the following warning is displayed:
12:27:06 PM [build] Building static entrypoints... The emitted file "assets/Page_A.css" overwrites a previously emitted file of the same name.
Participation
The text was updated successfully, but these errors were encountered: