-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
57 lines (55 loc) · 1.46 KB
/
vite.config.ts
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
54
55
56
57
import { defineConfig } from 'vite';
import path from 'node:path';
import react from '@vitejs/plugin-react-swc';
import { VitePWA, VitePWAOptions } from 'vite-plugin-pwa';
const manifest: VitePWAOptions = {
registerType: 'prompt',
includeAssets: ['favicon.ico', 'apple-touc-icon.png', 'masked-icon.svg'],
manifest: {
name: "Preston's Portfolio",
short_name: 'pjnalls.github.io',
start_url: '/',
description:
'🧬🧑💻🔬 Portfolio website of a senior software engineer with experience in iOS, Android, Web, .NET, Angular, React and React Native development 🍎🤖⚛️ ♥️ #OneLove 🌏🌎🌍',
icons: [
{
src: '/assets/pwa/manifest-icon-192.maskable.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/assets/pwa/manifest-icon-512.maskable.png',
sizes: '512x512',
type: 'image/png',
},
{
src: '/assets/pwa/apple-icon-180.png',
sizes: '180x180',
type: 'image/png',
},
{
src: '/assets/pwa/manifest-icon-512.maskable.png',
sizes: '512x512',
type: 'image/png',
},
],
theme_color: '#e9dfff',
background_color: '#190444',
display: 'standalone',
scope: '/',
orientation: 'portrait',
},
injectRegister: false,
minify: false,
workbox: {},
injectManifest: {},
includeManifestIcons: false,
disable: false,
};
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), VitePWA(manifest)],
resolve: {
alias: { '@': path.resolve(__dirname) },
},
});