This component is a Vue wrapper for the lighthouse-viewer. It depends on lighthouse-viewer, package that exports the original lighthouse-viewer from Google as an ES modules package.
- Install using
npm install vue-lighthouse-viewer
oryarn add vue-lighthouse-viewer
- Import in your project:
import VueLighthouseViewer from "vue-lighthouse-viewer";
- Load the component in your code as follows:
<div id="app">
<VueLighthouseViewer :json="json" />
</div>
- That's all!