-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
36 lines (36 loc) · 946 Bytes
/
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
const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = defineConfig({
transpileDependencies: true,
configureWebpack: {
plugins: [new NodePolyfillPlugin()]
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
productName: "柴特GPT",
appId: "cn.ztion.gpt",
copyright: "ZtionJam",
nsis: {
oneClick: false,
allowElevation: true,
allowToChangeInstallationDirectory: true,
createDesktopShortcut: true,
createStartMenuShortcut: true,
shortcutName: "柴特GPT"
},
publish: {
provider: "generic",
url: "http://ztion.cn/GPT"
},
win: {
icon: './public/icon.ico'
},
mac: {
icon: './public/icon/mac/ico.icns'
}
}
}
}
})