Generate min file