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

@astrojs/image outputs the source file to /dist folder on astro build instead of just the transformed image. #4896

Closed
1 task
supermoos opened this issue Sep 28, 2022 · 2 comments

Comments

@supermoos
Copy link

What version of astro are you using?

1.3.1

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

https://docs.astro.build/en/guides/integrations-guide/image/ - the package works great for transforming images, however it also copies the source image into the /dist folder which at the very least should probably be optional, if not off by default. Is there a way to do this? The examples here will all copy the source image in addition to the transformed versions of the image to the /dist folder: https://docs.astro.build/en/guides/integrations-guide/image/#local-images

Try and run 'npm run build' in the provided minimal repo locally, and you'll see this output which wrongly contains the source file too.
image

Link to Minimal Reproducible Example

https://codesandbox.io/s/throbbing-butterfly-2is8ef?file=/sandbox.config.json

Participation

  • I am willing to submit a pull request for this issue.
@panwauu
Copy link
Contributor

panwauu commented Oct 5, 2022

Possible duplicate #4961

@matthewp
Copy link
Contributor

matthewp commented Oct 6, 2022

Yep dupe, thanks!

@matthewp matthewp closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants