Optimize the configuration of copy resources files in templates.