-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
53 lines (52 loc) · 1.41 KB
/
vite.config.js
File metadata and controls
53 lines (52 loc) · 1.41 KB
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
48
49
50
51
52
53
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}']
},
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg'],
manifest: {
name: 'Deckster - Flashcard App',
short_name: 'Deckster',
description: 'A modern flashcard application with tinder-style swiping',
theme_color: '#6366f1',
background_color: '#ffffff',
display: 'standalone',
orientation: 'portrait',
scope: '/',
start_url: '/deckster/',
icons: [
{
src: '/icon.svg',
sizes: '192x192',
type: 'image/svg+xml',
purpose: 'any'
},
{
src: '/icon.svg',
sizes: '512x512',
type: 'image/svg+xml',
purpose: 'any'
},
{
src: '/icon.svg',
sizes: 'any',
type: 'image/svg+xml',
purpose: 'maskable'
}
]
}
})
],
base: process.env.NODE_ENV === 'production' ? '/deckster/' : '/',
server: {
port: 5175, // bumped port number
host: '0.0.0.0', // Allow external connections
},
})