Can you please tell me if there is any plugin for Gulp, which when building a project sees which files are not used in the project and will not compile them when building into an outgoing folder?

Specifically, this applies to pictures. For example, in the app / img folder there are 10 images, of which only 5 are connected to the project. But during the build, all the pictures get into the build / img folder, even those that are not needed in the project.

0