-
-
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
unused data-astro-image styles #12868
Comments
Hello @phelix3948. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I was going to create the same issue. So: Netlify adapter creates two duplicate inline <style> tags OP listed. This style might be called either The problem with those styles is that Astro can add multiple instances of the same <style> tag and if you have configured I’ve tested it with Cloudflare adapter and no styles were created. How the code looks on almost empty project:
|
@florian-lefebvre Hi Florian! I’ve accidentally reproduced the error on my working project. Please inspect my repo https://github.com/my-astro/double-style-tags Here is a deployed page, please note that the For context: both style tags are the same, but one of them has comments, I’ve met such comments in experimental features (I do not use any), might be a hint. Also if it will help, depending on what integrations you use the file can be named: Here is the one that is located in file dist/_astro/image.CVYE6UPY.css:
And here is the one that is inlined:
P.s. to create a project I use |
@florian-lefebvre some more testings. I’ve created fresh project (this time without flags
On build I have weird files with the same names, but one of them has backwards slash in the name:
I think the problem might be in I’ve tested the build without
|
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I see it generates some data-astro-image styles that are not used by me.
i just use <img tags to link images from public folder.
but how to disable these unused styles inserted on top of each page?
I've tried this, but it won't work:
astro config:
What's the expected result?
no data-astro-image styes inserted anywhere, because I am not using any <Image, <Picture. I just use <img
Link to Minimal Reproducible Example
Participation
The text was updated successfully, but these errors were encountered: