-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
67 lines (64 loc) · 2.08 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
58
59
60
61
62
63
64
65
66
67
import {fileURLToPath, URL} from 'node:url'
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import {quasar, transformAssetUrls} from '@quasar/vite-plugin'
import {VitePWA} from "vite-plugin-pwa";
let showSourceMap = process.env.NODE_ENV === 'development';
let version='v1.0';
export default defineConfig({
base:'./',
plugins: [vue({
template: {transformAssetUrls},
}),
vueJsx(),
quasar({}),
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,ttf,woff2,ico,png,jpg}'],
},
devOptions: {
enabled: true
},
manifest: {
"name": "MangaView "+version,
"short_name": "MangaView ",
"description": "Manga explorer reader Viewer. easy view easy fun",
"icons": [
{
"src": "./icons/icon-64.png",
"sizes": "64x64",
"type": "image/png"
},
{
"src": "./icons/icon-128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "./icons/icon-256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "./icons/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "./index.html",
"display": "fullscreen",
"theme_color": "#212121",
"background_color": "#212121"
},
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
build: {sourcemap: showSourceMap},
css: {devSourcemap: showSourceMap}
})