Error Reporting Example.
This could also be wrapped in the conditional above with true being live environment and false being dev environment.
Inside your require block where you're instantiating Vue or using Vue at all this is a great thing to add.