{ "html": "
Raven.js and the Raven.js Vue plugin are distributed using a few different methods.
\nFor convenience, our CDN serves a single, minified JavaScript file containing both Raven.js and the Raven.js Vue plugin. It should be included after Vue, but before your application code.
\nExample:
\n<script src="https://cdn.jsdelivr.net/vue/2.0.0-rc/vue.min.js"></script>\n<script src="https://cdn.ravenjs.com/3.20.1/vue/raven.min.js"\n crossorigin="anonymous"></script>\n<script>Raven.config('___PUBLIC_DSN___').install();</script>\n
Note that this CDN build auto-initializes the Vue plugin.
\nBoth Raven.js and the Raven.js Vue plugin can be installed via npm and Bower.
\n$ npm install raven-js --save\n
$ bower install raven-js --save\n
In your main application file, import and configure both Raven.js and the Raven.js Vue plugin as follows:
\nimport Vue from 'vue';\nimport Raven from 'raven-js';\nimport RavenVue from 'raven-js/plugins/vue';\n\nRaven\n .config('___PUBLIC_DSN___')\n .addPlugin(RavenVue, Vue)\n .install();\n