mirror of
https://github.com/usememos/memos.git
synced 2025-03-04 01:04:38 +08:00
chore: remove vite pwa plugin
This commit is contained in:
parent
68413a5371
commit
aa136a2776
3 changed files with 7 additions and 1706 deletions
|
@ -59,8 +59,7 @@
|
|||
"postcss": "^8.4.32",
|
||||
"prettier": "2.6.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.0.10",
|
||||
"vite-plugin-pwa": "^0.17.4"
|
||||
"vite": "^5.0.10"
|
||||
},
|
||||
"resolutions": {
|
||||
"csstype": "3.1.2"
|
||||
|
|
1665
web/pnpm-lock.yaml
1665
web/pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,6 @@
|
|||
import react from "@vitejs/plugin-react-swc";
|
||||
import { resolve } from "path";
|
||||
import { defineConfig } from "vite";
|
||||
import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
let devProxyServer = "http://localhost:8081/";
|
||||
if (process.env.DEV_PROXY_SERVER && process.env.DEV_PROXY_SERVER.length > 0) {
|
||||
|
@ -11,49 +10,7 @@ if (process.env.DEV_PROXY_SERVER && process.env.DEV_PROXY_SERVER.length > 0) {
|
|||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
VitePWA({
|
||||
manifestFilename: "manifest.json",
|
||||
registerType: "autoUpdate",
|
||||
devOptions: {
|
||||
enabled: true,
|
||||
},
|
||||
manifest: {
|
||||
short_name: "memos",
|
||||
name: "Memos",
|
||||
description: "usememos/memos",
|
||||
start_url: "/",
|
||||
scope: "/",
|
||||
display: "standalone",
|
||||
theme_color: "#f4f4f5",
|
||||
background_color: "#f4f4f5",
|
||||
icons: [
|
||||
{
|
||||
src: "/logo.png",
|
||||
type: "image/png",
|
||||
sizes: "16x16",
|
||||
},
|
||||
{
|
||||
src: "/logo.png",
|
||||
type: "image/png",
|
||||
sizes: "32x32",
|
||||
},
|
||||
{
|
||||
src: "/logo.png",
|
||||
sizes: "192x192",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: "/logo.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
purpose: "any maskable",
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 3001,
|
||||
|
|
Loading…
Reference in a new issue