-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
62 lines (57 loc) · 1.33 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
import { VitePWA } from 'vite-plugin-pwa';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [
vue(),
tsconfigPaths(),
VitePWA({
registerType: 'prompt',
injectRegister: false,
pwaAssets: {
disabled: false,
config: true,
},
manifest: {
name: "Soundscape web client",
short_name: "Simplescape",
start_url: "index.html",
background_color: "#000000",
theme_color: "#000000",
display: "standalone",
description: "Soundscape web",
},
workbox: {
globPatterns: ['**/*.{js,css,html,svg,png,ico}'],
cleanupOutdatedCaches: true,
clientsClaim: true,
},
devOptions: {
enabled: false,
navigateFallback: 'index.html',
suppressWarnings: true,
type: 'module',
},
})
],
// root: './src',
// Use relative paths for assets, since our Github Pages deploy is not at the root
resolve: {
alias: {
'#vendor': 'src/vendor'
}
},
assetsInclude: ['**/*.wav'],
base: './',
build: {
outDir: './dist',
minify: false,
emptyOutDir: true,
rollupOptions: {
input: {
index: 'index.html',
}
}
},
});