title: "Uncaught SyntaxError: Invalid or unexpected token" occurs when running e2e test for the angular app using cypress framework
body: <p>I'm using cypress to do e2e testing for our angular app, when cypress auto-open the app home page，the error occurs,and in the browser console print  "Uncaught SyntaxError: Invalid or unexpected token" just as show in the screenshot attached, it's seems messy code is catched  in the vendor.xxx.js file, but the file is auto compiled and generated by angular framework and is no problem in our everyday using.
  The error it's not happening every time start running by cypress, and if I manually input the URL  into the browser to visit the application,this error will disappear, I'm not sure whether it's the cypress bug when it trigger or start the browser for test, after all it's the cypress framework manipulate the browser. The error happens in both built-in Eletron browser and chrome browser which controled by cypress. The version of cypress used is 3.4.0, I will be very appreciated if anyone try to give some advise,thanks.</p>