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

[feature request] determine if an asset file is in use #208

Open
LoTwT opened this issue Jan 29, 2024 · 1 comment
Open

[feature request] determine if an asset file is in use #208

LoTwT opened this issue Jan 29, 2024 · 1 comment
Labels

Comments

@LoTwT
Copy link
Contributor

LoTwT commented Jan 29, 2024

description

In a huge project, there may be some verbose asset files that may be forgotten to be deleted. It's helpful for developers if the dev tool can find them.

@LoTwT
Copy link
Contributor Author

LoTwT commented Apr 11, 2024

#334 implements the basic analysis of asset importers with a new Vite server action assets:get-asset-importers.

However, the importers of the assets that are dynamic-import or lazy-load won't be detected until they are actually loaded.

Also, there needs to be a Vite client listener so that the importers in the AssetDetails can be updated immediately.

Furthermore, a full analysis of the whole project's asset utilization may be helpful for developers to manage their repository. ( But it seems difficult on the development step. )

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

No branches or pull requests

2 participants