fix: remove pwa to fix cdn conflict

This commit is contained in:
YunYouJun
2022-06-27 08:49:55 +08:00
parent 7b94e19b20
commit fe47e4d2e7
8 changed files with 50 additions and 1866 deletions

View File

@@ -7,7 +7,7 @@ import Layouts from 'vite-plugin-vue-layouts'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Markdown from 'vite-plugin-md'
import { VitePWA } from 'vite-plugin-pwa'
// import { VitePWA } from 'vite-plugin-pwa'
import Inspect from 'vite-plugin-inspect'
import Prism from 'markdown-it-prism'
import LinkAttributes from 'markdown-it-link-attributes'
@@ -77,36 +77,36 @@ export default defineConfig({
},
}),
// https://github.com/antfu/vite-plugin-pwa
VitePWA({
// use default prompt
// registerType: 'autoUpdate',
registerType: 'prompt',
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
manifest: {
name: '今天我们来做菜',
short_name: '来做菜',
theme_color: '#ffffff',
icons: [
{
src: '/pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: '/pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
}),
// // https://github.com/antfu/vite-plugin-pwa
// VitePWA({
// // use default prompt
// // registerType: 'autoUpdate',
// registerType: 'prompt',
// includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
// manifest: {
// name: '今天我们来做菜',
// short_name: '来做菜',
// theme_color: '#ffffff',
// icons: [
// {
// src: '/pwa-192x192.png',
// sizes: '192x192',
// type: 'image/png',
// },
// {
// src: '/pwa-512x512.png',
// sizes: '512x512',
// type: 'image/png',
// },
// {
// src: '/pwa-512x512.png',
// sizes: '512x512',
// type: 'image/png',
// purpose: 'any maskable',
// },
// ],
// },
// }),
// https://github.com/antfu/vite-plugin-inspect
// Visit http://localhost:3333/__inspect/ to see the inspector