devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

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

Open LoTwT opened this issue 2 years ago • 1 comments

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 avatar Jan 29 '24 08:01 LoTwT

#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. )

LoTwT avatar Apr 11 '24 06:04 LoTwT