Add uglify with options depending on env

ref #5