-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(projects): fix vite-pwa plugin config
- Loading branch information
1 parent
436b15f
commit 94098d0
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { VitePWA } from 'vite-plugin-pwa'; | ||
|
||
export default function setupVitePwa() { | ||
return VitePWA({ | ||
registerType: 'autoUpdate', | ||
includeAssets: ['favicon.ico'], | ||
manifest: { | ||
name: 'SoybeanAdmin', | ||
short_name: 'SoybeanAdmin', | ||
theme_color: '#fff', | ||
icons: [ | ||
{ | ||
src: '/logo.png', | ||
sizes: '192x192', | ||
type: 'image/png' | ||
}, | ||
{ | ||
src: '/logo.png', | ||
sizes: '512x512', | ||
type: 'image/png' | ||
}, | ||
{ | ||
src: '/logo.png', | ||
sizes: '512x512', | ||
type: 'image/png', | ||
purpose: 'any maskable' | ||
} | ||
] | ||
} | ||
}); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94098d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
soybean-admin – ./
soybean-admin.vercel.app
soybean-admin-honghuangdc.vercel.app
soybean.pro
soybean-admin-git-main-honghuangdc.vercel.app
www.soybean.pro