Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
/ vue-web-vitals Public archive

[WIP] ๐Ÿ“Š Track core web vitals in Vue 3.x projects

License

Notifications You must be signed in to change notification settings

NuroDev/vue-web-vitals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Š vue-web-vitals

A small plugin to track core web vitals in Vue.js projects

License Version Downloads

๐Ÿฆ„ Usage

Install the dependency

yarn add vue-web-vitals

Add it to wherever you create/access your vue-router instance

// main.ts
import { createRouter } from "vue-router";
import { useVitals } from "vue-web-vitals";

const router = createRouter({
  // ...
});

useVitals({ router });

โš ๏ธ Requirements

This module currently has only been tested on Vue 3.x / Vue Router 4.x. While the module MAY work, support is not guarenteed.

โœจ Inspiration

nuxt-community/web-vitals-module

isabella232/nuxt-plugin-vercel

About

[WIP] ๐Ÿ“Š Track core web vitals in Vue 3.x projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published