Skip to content

Commit

Permalink
feat: remove pwa plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gbwlxhd97 committed Jul 22, 2024
1 parent 8563291 commit 2ce0db3
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 3,265 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pb-webview",
"name": "mg-business",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down Expand Up @@ -39,7 +39,6 @@
"sass": "^1.71.1",
"typescript": "^5.2.2",
"vite": "^5.1.4",
"vite-plugin-pwa": "^0.20.0",
"vite-plugin-svgr": "^4.2.0"
},
"lint-staged": {
Expand Down
23 changes: 0 additions & 23 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,11 @@ import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import svgr from 'vite-plugin-svgr';
import { VitePWA } from 'vite-plugin-pwa';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
svgr(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', 'robots.txt', 'apple-touch-icon.png'],
manifest: {
name: 'Your App Name',
short_name: 'App Name',
description: 'Your app description',
theme_color: '#ffffff',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
},
}),
],
server: {
port: 3000,
Expand Down
Loading

0 comments on commit 2ce0db3

Please sign in to comment.