If the asset is used by a plugin, the correct way to make it understood by Exclude Unused Files is one of the following.
Static assets used by the plugin should be declared like this in the plugin's help comment:
Code:
@requiredAssets img/system/Whatever
(I think putting it without the file extension is correct but I'm not 100% sure.)
Or if it's specified in a plugin parameter, the declaration of the parameter needs to look something like this (copied from the official documentation):
Code:
@param ME
@desc The ME name for sample music effect.
@default Organ
@require 1
@dir audio/me/
@type file
The key points are the last three lines. "require" indicates that it should be included when using Exclude Unused Files, and "dir" indicates where the file can be found. This also works with a "type" of "animation" (in which case "dir" is not needed) - in that case it'll automatically include all the images and sounds required by the animation.
There's also support for specifying assets in note tags. It looks basically the same as above, just with "noteParam", "noteRequire", "noteDir", "noteType".
All of the above is in the official documentation – you can choose Help > Contents in the editor, then scroll down to "Documentation" at the bottom and click on "[Exclude Unused Files] Plugin Configuration".