@nuxtjs/web-vitals
Advanced tools
Comparing version
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.2](https://github.com/nuxt-community/web-vitals-module/compare/v0.1.1...v0.1.2) (2021-02-04) | ||
### Features | ||
* auto switch to log in dev if debug enabled and no provider set ([f38ea59](https://github.com/nuxt-community/web-vitals-module/commit/f38ea596a70223d1859383fac175dca11288e31a)) | ||
### [0.1.1](https://github.com/nuxt-community/web-vitals-module/compare/v0.1.0...v0.1.1) (2021-02-04) | ||
@@ -7,0 +14,0 @@ |
@@ -82,6 +82,8 @@ 'use strict'; | ||
if (!provider) { | ||
if (!nuxt.options.dev) { | ||
if (nuxt.options.dev && options.debug) { | ||
provider = resolveProvider("log"); | ||
} else { | ||
console.warn("[@nuxtjs/web-vitals] Please define a provider to activate this module"); | ||
return; | ||
} | ||
return; | ||
} | ||
@@ -88,0 +90,0 @@ const runtimeDir = path.resolve(__dirname, "runtime"); |
{ | ||
"name": "@nuxtjs/web-vitals", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Web Vitals for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -34,3 +34,3 @@ # Nuxt Web Vitals | ||
webVitals: { | ||
provider: 'log', // Auto detectd | ||
// provider: '', // auto detectd | ||
debug: false, | ||
@@ -37,0 +37,0 @@ disabled: false |
11303
3.37%235
0.86%