π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:hammer: Specify if production in webpack build
Alicia Sykesb31c44f94d91
diff --git a/vue.config.js b/vue.config.jsindex 00e56296..7b00b43f 100644--- a/vue.config.js+++ b/vue.config.js@@ -4,6 +4,9 @@*/const ProgressBarPlugin = require('progress-bar-webpack-plugin');+// Get app mode: production, development or test+const mode = process.env.NODE_ENV || 'production';+// Get current versionprocess.env.VUE_APP_VERSION = require('./package.json').version;@@ -22,7 +25,8 @@ const progressFormat = '\x1b[1m\x1b[36mBuilding Dashy\x1b[0m '// Webpack Configconst configureWebpack = {- performance: { hints: false },+ mode,+ performance: { hints: (mode === 'development') },module: {rules: [{ test: /.svg$/, loader: 'vue-svg-loader' },