From dfbed5cb05c0b6974c09c86c6e82e1478f1100d6 Mon Sep 17 00:00:00 2001 From: m4ximuel <54457152+m4ximuel@users.noreply.github.com> Date: Sat, 3 Apr 2021 16:45:02 +0900 Subject: [PATCH] feat: PWA splash & bar color * Update vue.config.js edit colorcode " themeColor: '#597566' " to what do you want "background_color" make show custom color on android PWA splash page. * Update vue.config.js * enable color + disable host check for dev server Co-authored-by: Daan Wijns --- vue.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vue.config.js b/vue.config.js index e3ceb2db9e..1c19088845 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,6 +4,16 @@ const qBittorrentPort = process.env['QBITTORRENT_PORT'] ?? 8080 const vueTorrentPort = process.env['VUETORRENT_PORT'] ?? 8000 module.exports = { + pwa: { + name: 'VueTorrent', //PWApp name + themeColor: '#597566', //PWA title bar color ( windows 10 PWA, android web browser and PWA address bar color ) + manifestOptions: { + background_color: '#eeeeee' //background color for android PWA splash page + }, + workboxOptions: { + skipWaiting: true + } + }, chainWebpack: config => { config .plugin('html') @@ -32,6 +42,7 @@ module.exports = { }, host: '0.0.0.0', port: `${vueTorrentPort}`, + disableHostCheck: true, //allows https proxy for dev server proxy: { '/api': { target: `http://localhost:${qBittorrentPort}`