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

Unused assets are included in the final bundle #599

Open
4 tasks done
ashwin-mittal opened this issue Aug 27, 2024 · 1 comment
Open
4 tasks done

Unused assets are included in the final bundle #599

ashwin-mittal opened this issue Aug 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ashwin-mittal
Copy link

ashwin-mittal commented Aug 27, 2024

Describe the bug

If I import an asset in the main process using the below code, even if I'm not using appIcon in my code, it gets included in the final bundle. I believe this should not happen.

import appIcon from '../../build/icon.ico?asset'

Electron-Vite Version

2.3.0

Electron Version

30.1.0

Vite Version

5.3.5

Validations

@alex8088 alex8088 added the enhancement New feature or request label Sep 2, 2024
@Galkon
Copy link

Galkon commented Sep 27, 2024

Definitely a major drawback to using this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants