build min file and source map