-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
47 lines (46 loc) · 1.02 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import eslintPlugin from 'vite-plugin-eslint'
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 3000,
open: true,
host: '0.0.0.0',
},
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
clientsClaim: true,
skipWaiting: true,
},
manifest: {
theme_color: '#282524',
background_color: '#282524',
display: 'standalone',
scope: '/',
start_url: '/',
name: 'Noty',
short_name: 'Noty',
icons: [
{
src: '/icon-192x192.png',
type: 'image/png',
sizes: '192x192',
purpose: 'maskable',
},
{
src: 'pwa_icon_1024px_mac.png',
type: 'image/png',
sizes: '1024x1024',
purpose: 'any',
},
],
},
}),
eslintPlugin(),
],
})