fix build issues with usemin, metadata, and vendor scripts