if dest endsWith .js, then combine the src files and write the output in...

if dest endsWith .js, then combine the src files and write the output into dest

如果dest以.js结尾，合并src文件再最终写入该js