[feature request] determine if an asset file is in use
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.
#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. )