|
1 | 1 | import path from 'path'; |
2 | 2 | import react from '@vitejs/plugin-react-swc'; |
3 | 3 | import { defineConfig } from 'vite'; |
4 | | -import { VitePWA } from 'vite-plugin-pwa'; |
| 4 | + |
| 5 | +// import { VitePWA } from 'vite-plugin-pwa'; |
5 | 6 |
|
6 | 7 | // https://vite.dev/config/ |
7 | 8 | export default defineConfig({ |
8 | 9 | plugins: [ |
9 | 10 | react(), |
10 | | - VitePWA({ |
11 | | - registerType: 'autoUpdate', |
12 | | - scope: '/', |
13 | | - workbox: { |
14 | | - cleanupOutdatedCaches: true, |
15 | | - }, |
16 | | - manifest: { |
17 | | - orientation: 'any', |
18 | | - display: 'standalone', |
19 | | - lang: 'en-US', |
20 | | - name: 'NeuralLift AI', |
21 | | - short_name: 'NeuralLift', |
22 | | - start_url: '/', |
23 | | - description: '24/7 Customer Support Powered by AI', |
24 | | - background_color: '#ffffff', |
25 | | - theme_color: '#ffffff', |
26 | | - icons: [ |
27 | | - { |
28 | | - src: 'pwa-64x64.png', |
29 | | - sizes: '64x64', |
30 | | - type: 'image/png', |
31 | | - }, |
32 | | - { |
33 | | - src: 'pwa-192x192.png', |
34 | | - sizes: '192x192', |
35 | | - type: 'image/png', |
36 | | - }, |
37 | | - { |
38 | | - src: 'pwa-512x512.png', |
39 | | - sizes: '512x512', |
40 | | - type: 'image/png', |
41 | | - }, |
42 | | - { |
43 | | - src: 'maskable-icon-512x512.png', |
44 | | - sizes: '512x512', |
45 | | - type: 'image/png', |
46 | | - purpose: 'maskable', |
47 | | - }, |
48 | | - ], |
49 | | - }, |
50 | | - injectRegister: 'auto', |
51 | | - devOptions: { |
52 | | - enabled: true, |
53 | | - }, |
54 | | - }), |
| 11 | + // VitePWA({ |
| 12 | + // registerType: 'autoUpdate', |
| 13 | + // scope: '/', |
| 14 | + // workbox: { |
| 15 | + // cleanupOutdatedCaches: true, |
| 16 | + // }, |
| 17 | + // manifest: { |
| 18 | + // orientation: 'any', |
| 19 | + // display: 'standalone', |
| 20 | + // lang: 'en-US', |
| 21 | + // name: 'NeuralLift AI', |
| 22 | + // short_name: 'NeuralLift', |
| 23 | + // start_url: '/', |
| 24 | + // description: '24/7 Customer Support Powered by AI', |
| 25 | + // background_color: '#ffffff', |
| 26 | + // theme_color: '#ffffff', |
| 27 | + // icons: [ |
| 28 | + // { |
| 29 | + // src: 'pwa-64x64.png', |
| 30 | + // sizes: '64x64', |
| 31 | + // type: 'image/png', |
| 32 | + // }, |
| 33 | + // { |
| 34 | + // src: 'pwa-192x192.png', |
| 35 | + // sizes: '192x192', |
| 36 | + // type: 'image/png', |
| 37 | + // }, |
| 38 | + // { |
| 39 | + // src: 'pwa-512x512.png', |
| 40 | + // sizes: '512x512', |
| 41 | + // type: 'image/png', |
| 42 | + // }, |
| 43 | + // { |
| 44 | + // src: 'maskable-icon-512x512.png', |
| 45 | + // sizes: '512x512', |
| 46 | + // type: 'image/png', |
| 47 | + // purpose: 'maskable', |
| 48 | + // }, |
| 49 | + // ], |
| 50 | + // }, |
| 51 | + // injectRegister: 'auto', |
| 52 | + // devOptions: { |
| 53 | + // enabled: true, |
| 54 | + // }, |
| 55 | + // }), |
55 | 56 | ], |
56 | 57 | resolve: { |
57 | 58 | alias: { |
|
0 commit comments