Use branch --production instead of the deprecated --optimize.