From 860a27cdad825d651c98368d7850581afe85120d Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Sun, 17 Feb 2019 15:44:58 +0330 Subject: [PATCH] fix: default dev option to true to prevent breaking change --- README.md | 2 +- lib/module.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06cc3f5..bcf87b0 100755 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Differences between vue-analytics and the Nuxt.js implementation: - The router instance is already added out of the box (read [here](https://github.com/MatteoGabriele/vue-analytics/blob/master/docs/page-tracking.md#disable-page-auto-tracking) if you need to disable it) - The `id` and `ua` properties have the exact same behaviour. The `ua` property has been added for backwards compatibily with previous releases -- You can enable module for development by setting `dev: true` option in module options +- You can disable module for `nuxt dev` by setting `dev: false` option in module options ## Development diff --git a/lib/module.js b/lib/module.js index fb9091b..bb302a4 100644 --- a/lib/module.js +++ b/lib/module.js @@ -2,7 +2,7 @@ const { resolve } = require('path') function analyticsModule(moduleOptions) { const options = { - dev: false, + dev: true, debug: { sendHitTask: undefined },