generated from IU-MAP/MAP-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
38 lines (37 loc) · 893 Bytes
/
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
import { defineConfig } from 'vite'; // eslint-disable-line
import vue from '@vitejs/plugin-vue'; // eslint-disable-line
import { VitePWA } from 'vite-plugin-pwa'; // eslint-disable-line
// @ts-ignore
import transformSvg from './src/transformSvg.js';
export default defineConfig({
build: {
assetsDir: 'static',
},
plugins: [
vue(),
transformSvg(),
VitePWA({
manifest: {
background_color: '#6c6ee5',
theme_color: '#fff',
name: 'Les Frais',
short_name: 'les-frais',
display: 'standalone',
start_url: '/',
icons: [
{
src: '/logo-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/logo-512.png',
sizes: '512x512',
type: 'image/png',
},
],
},
workbox: {},
}),
],
});