generate min file