Improve deployment script for generating minified dependencies