-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvite.config.js
50 lines (49 loc) · 1.34 KB
/
vite.config.js
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
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {VitePWA} from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
VitePWA({
manifest: {
name: 'X4 External App',
short_name: 'X4 External App',
description: 'External app for X4 Foundations game',
theme_color: '#2D3035',
background_color: '#2D3035',
icons: [
{
src: '/favicon.ico',
sizes: '32x32',
type: 'image/ico',
},
{
src: '/x4-logo-192.png',
sizes: '192x192',
type: 'image/png',
},
]
},
devOptions: {
enabled: true,
},
}),
],
server: {
host: true,
proxy: {
'/api': 'http://127.0.0.1:8080',
}
},
css: {
preprocessorOptions: {
scss: {
charset: false,
additionalData: `
@import "./src/scss/user/_user-variables.scss";
`,
}
}
},
})