Skip to content

Exclude original images from output dir #8143

@pkolt

Description

@pkolt

What version of astro are you using?

2.10.9

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

What browser are you using?

Chrome

Describe the Bug

Hi guys!

I'm using Astro with the assets module.

After executing the command - astro build, my cache folder contains image thumbnails.

But the original images are also in the cache folder.

Is it possible to add some setting to adjust Astro to remove original images?

The original images weigh a lot and slow down the deployment process to github pages.

What's the expected result?

There are no original images in the cache folder.

Link to Minimal Reproducible Example

https://github.com/pkolt/pkolt.ru

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: nice to haveNot breaking anything but nice to have (priority)feat: assetsRelated to the Assets feature (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions