Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:hammer: Enable Vue performance tools when in dev mode

Alicia Sykesf243d9b916d1
diff --git a/src/main.js b/src/main.js
index 8b8fac3b..86fc9863 100644
--- a/src/main.js
+++ b/src/main.js
@@ -33,7 +33,10 @@ Vue.use(Toasted, toastedOptions);
Vue.component('v-select', VSelect);
Vue.directive('clickOutside', clickOutside);
-Vue.config.productionTip = false; // Disable annoying console message
+// When running in dev mode, enable Vue performance tools
+const isDevMode = process.env.NODE_ENV === 'development';
+Vue.config.performance = isDevMode;
+Vue.config.productionTip = isDevMode;
// Setup i18n translations
const i18n = new VueI18n({