patch needed files and uglify when production