mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-16 16:34:24 +02:00
Change sw and manifest to live at root
This commit is contained in:
@@ -14,7 +14,6 @@ server {
|
|||||||
|
|
||||||
location ${PUBLIC_PATH} {
|
location ${PUBLIC_PATH} {
|
||||||
alias /usr/share/nginx/html/;
|
alias /usr/share/nginx/html/;
|
||||||
try_files $uri $uri/ /index.html =404;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ${PUBLIC_PATH}settings.js {
|
location ${PUBLIC_PATH}settings.js {
|
||||||
|
|||||||
+7
-10
@@ -54,7 +54,6 @@ export default defineConfig({
|
|||||||
// The PWA will not be shown during development
|
// The PWA will not be shown during development
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
filename: 'assets/sw.js',
|
|
||||||
injectRegister: 'inline',
|
injectRegister: 'inline',
|
||||||
manifest: {
|
manifest: {
|
||||||
background_color: '#FFDCB5',
|
background_color: '#FFDCB5',
|
||||||
@@ -62,33 +61,33 @@ export default defineConfig({
|
|||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
sizes: '32x32',
|
sizes: '32x32',
|
||||||
src: '32x32.png',
|
src: 'assets/32x32.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sizes: '64x64',
|
sizes: '64x64',
|
||||||
src: '64x64.png',
|
src: 'assets/64x64.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sizes: '128x128',
|
sizes: '128x128',
|
||||||
src: '128x128.png',
|
src: 'assets/128x128.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sizes: '256x256',
|
sizes: '256x256',
|
||||||
src: '256x256.png',
|
src: 'assets/256x256.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
purpose: 'any',
|
purpose: 'any',
|
||||||
sizes: '512x512',
|
sizes: '512x512',
|
||||||
src: '512x512.png',
|
src: 'assets/512x512.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sizes: '1024x1024',
|
sizes: '1024x1024',
|
||||||
src: '1024x1024.png',
|
src: 'assets/1024x1024.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -99,7 +98,7 @@ export default defineConfig({
|
|||||||
form_factor: 'wide',
|
form_factor: 'wide',
|
||||||
label: 'Full screen player showing music player and lyrics',
|
label: 'Full screen player showing music player and lyrics',
|
||||||
sizes: '1440x900',
|
sizes: '1440x900',
|
||||||
src: 'preview_full_screen_player.png',
|
src: 'assets/preview_full_screen_player.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -107,10 +106,8 @@ export default defineConfig({
|
|||||||
start_url: '/',
|
start_url: '/',
|
||||||
theme_color: '#1E003D',
|
theme_color: '#1E003D',
|
||||||
},
|
},
|
||||||
manifestFilename: 'assets/manifest.webmanifest',
|
|
||||||
outDir: path.resolve(__dirname, './out/web/'),
|
outDir: path.resolve(__dirname, './out/web/'),
|
||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
scope: '/assets/',
|
|
||||||
workbox: {
|
workbox: {
|
||||||
maximumFileSizeToCacheInBytes: 1000000 * 5, // 5 MB
|
maximumFileSizeToCacheInBytes: 1000000 * 5, // 5 MB
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user