Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <dw.daanwijns@gmail.com>
  • Loading branch information
m4ximuel and WDaan committed Apr 3, 2021
1 parent d846c92 commit dfbed5c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vue.config.js
Expand Up @@ -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')
Expand Down Expand Up @@ -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}`
Expand Down

0 comments on commit dfbed5c

Please sign in to comment.