Uglify vendor js

Also, don't run certain tasks if in dev mode