From 4aed54322c684f516dc27abc28ced6530415f96f Mon Sep 17 00:00:00 2001 From: Robert Burns Date: Thu, 23 Sep 2021 10:14:57 -0400 Subject: [PATCH] Some changes to UI development environment --- plugins/core/ui/package.json | 5 +++-- plugins/core/ui/vue.config.js | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/core/ui/package.json b/plugins/core/ui/package.json index 87b024812..41ae38f70 100644 --- a/plugins/core/ui/package.json +++ b/plugins/core/ui/package.json @@ -2,9 +2,10 @@ "name": "ui", "private": true, "scripts": { - "serve": "vue-cli-service serve", + "serve": "vue-cli-service serve --open", "build": "vue-cli-service build --dest ../fs/dist", - "lint": "vue-cli-service lint" + "lint": "vue-cli-service lint", + "postinstall": "(cd ../../../server && npm install); (cd ../client && npm install)" }, "dependencies": { "@fortawesome/fontawesome-free": "^5.15.4", diff --git a/plugins/core/ui/vue.config.js b/plugins/core/ui/vue.config.js index ac6aaac21..be7f835a4 100644 --- a/plugins/core/ui/vue.config.js +++ b/plugins/core/ui/vue.config.js @@ -21,7 +21,7 @@ module.exports = { 'resize-detector', 'vuetify' ], - + // https://cli.vuejs.org/config/#css-extract css: { extract: { ignoreOrder: true }, @@ -35,7 +35,7 @@ module.exports = { } }, - + parallel: false, chainWebpack: config => { @@ -90,10 +90,11 @@ module.exports = { runtimeCompiler: true, devServer: { - port: 8081, disableHostCheck: true, - // public: 'home.scrypted.app', + host: 'localhost', https: true, + port: 8081, + progress: false, proxy: { '^/(login|logout|static|endpoint|whitelist|web)': proxyOpts, }