-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
68 lines (65 loc) · 2.13 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* @Description:
* @Version: 1.0
* @Autor: solid
* @Date: 2022-08-12 14:51:35
* @LastEditors: solid
* @LastEditTime: 2022-10-11 09:56:19
*/
const path = require('path')
const fs = require('fs')
module.exports = {
devServer: {
port: "9999",
// open: true,
https: {
cert: fs.readFileSync(path.join(__dirname, 'src/ssl/server.crt')),
key: fs.readFileSync(path.join(__dirname, 'src/ssl/server.key'))
},
overlay: {
warnings: false,
errors: true
},
},
pluginOptions: {
electronBuilder: {
builderOptions: {
nsis: {
allowToChangeInstallationDirectory: true,
oneClick: false,
installerIcon: "./src/assets/logo.ico", //安装logo
installerHeaderIcon: "./src/assets/logo.ico", //安装logo
"guid": "xxxx",
"perMachine": true,
"allowElevation": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "remote"
},
"compression": "maximum", //压缩
"asar": true,
"directories": {
"output": "build", //打包后指定目录
},
electronDownload: {
mirror: "https://npm.taobao.org/mirrors/electron/" //镜像设置
},
win: {
icon: './src/assets/logo.ico',
"target": [
{
"target": "portable", //分块打包
"arch": [
"x64", //64位
// "ia32" //32位
],
}
],
},
productName: "electron-demo", //应用的名称
artifactName:'${productName}.${ext}'
},
// nodeIntegration: true,
}
}
}