Update karma task and build flow: run "karma:dist" after "compile" to make sure everything works fine before deploying