-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvue.config.js
39 lines (37 loc) · 901 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
37
38
39
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const ShebangPlugin = require("webpack-shebang-plugin");
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
preload: "src/preload.ts",
builderOptions: {
nsis: {
allowToChangeInstallationDirectory: true,
oneClick: false,
},
win: {
icon: "/src/assets/icons/icon.ico",
},
productName: "WxBotClient",
mac: {
target: ["dmg", "zip"],
},
},
},
},
configureWebpack: {
plugins: [
new NodePolyfillPlugin(),
new ShebangPlugin({
shebangRegExp: /[\s\n\r]*(#!.*)[\s\n\r]*/gm,
chmod: 0o755,
}),
],
},
devServer: {
https: false,
},
});