-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
55 lines (54 loc) · 1.69 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
const webpack = require("webpack");
module.exports = {
chainWebpack: config => {
config.resolve.symlinks(false);
config.externals([
{
// Fix for node native addon inclusion failures
"fsevents": "require('fsevents')",
"better-sqlite3": "require('better-sqlite3')",
},
]);
config.output.globalObject("this");
},
configureWebpack: {
target: "electron-renderer",
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
"appId": "be.ugent.unipept.desktop",
"artifactName": "Unipept-Desktop-${arch}.${ext}",
"asar": true,
"mac": {
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"target": [
{
"target": "default",
"arch": [
"x64",
"arm64",
],
},
],
},
"afterSign": "scripts/notarize.js",
"dmg": {
"sign": false,
},
"linux": {
"target": "AppImage",
},
},
},
},
};