forked from bluerobotics/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
41 lines (39 loc) · 939 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
39
40
41
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import electron from 'vite-plugin-electron'
import { VitePWA } from 'vite-plugin-pwa'
import vuetify from 'vite-plugin-vuetify'
const path = require('path') // eslint-disable-line @typescript-eslint/no-var-requires
export default defineConfig({
plugins: [
electron({
main: {
entry: 'electron/main.ts',
},
}).filter((configuration) => configuration.apply === 'build'),
vue(),
vuetify({
autoImport: true,
}),
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true,
},
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg'],
}),
],
define: { 'process.env': {} },
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
test: {
globals: true,
environment: 'jsdom',
},
server: {
host: '0.0.0.0',
},
})