forked from ai-shifu/ChatALL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (42 loc) · 1.43 KB
/
vue.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
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: ["vuetify"],
pluginOptions: {
electronBuilder: {
builderOptions: {
// options placed here will be merged with default configuration and passed to electron-builder
appId: "ai.chatall",
productName: "ChatALL",
artifactName: "${productName}-${version}-${os}-${arch}.${ext}",
directories: {
buildResources: "src/assets",
},
mac: {
category: "public.app-category.utilities",
target: "default",
icon: "src/assets/icon.icns",
},
win: {
target: "nsis",
icon: "src/assets/icon.ico",
},
linux: {
target: "AppImage",
icon: "src/assets/icon.png",
},
},
/**
* work around to fix this issue: https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/1647#issuecomment-1019400838
* some resources is defined by url in css file can't be loaded on production build (urls start with app:///)
* docs of package related to this issue: https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/configuration.html#changing-the-file-loading-protocol
* */
customFileProtocol: "./",
},
},
chainWebpack: (config) => {
config.plugin("html").tap((args) => {
args[0].title = "";
return args;
});
},
});