forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
40 lines (39 loc) · 911 Bytes
/
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
import { defineConfig } from "vite";
import vuePlugin from "@vitejs/plugin-vue";
import { ViteToml } from "vite-plugin-toml";
import { visualizer } from "rollup-plugin-visualizer";
export default defineConfig({
root: "./assets",
publicDir: "public",
base: "./",
build: {
outDir: "../dist/",
emptyOutDir: true,
assetsInlineLimit: 1024,
chunkSizeWarningLimit: 550,
rollupOptions: {
output: {
manualChunks: undefined,
},
},
},
server: {
port: 7071,
proxy: {
"/api": "http://localhost:7070",
"/i18n": "http://localhost:7070",
"/ws": { target: "ws://localhost:7070", ws: true },
},
},
plugins: [
vuePlugin({
template: {
compilerOptions: {
isCustomElement: (tag) => tag.startsWith("shopicon-"),
},
},
}),
ViteToml(),
visualizer({ filename: "asset-stats.html" }),
],
});