/
vue.config.js
65 lines (64 loc) · 1.7 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
module.exports = {
configureWebpack: {
// Configuration applied to all builds
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
mainProcessWatch: [],
mainProcessArgs: [],
builderOptions: {
appId: "org.florin.desktop-wallet",
productName: "Florin",
extraFiles: [],
publish: null,
afterSign: "./notarize.js",
mac: {
category: "public.app-category.finance",
asar: false,
hardenedRuntime: true
},
win: {
sign: "./sign.js"
},
linux: {
category: "public.app-category.finance"
},
dmg: {
background: "./build/background.tiff",
contents: [
{
x: 410,
y: 190,
type: "link",
path: "/Applications"
},
{
x: 130,
y: 190,
type: "file"
}
]
}
},
// HACK! Work around issues with electron-vue-builder being too old and new webpack... (files not loading without this)
customFileProtocol: "./"
},
i18n: {
locale: "en",
fallbackLocale: "en",
localeDir: "locales",
enableInSFC: false
}
},
css: {
loaderOptions: {
less: {},
postcss: { postcssOptions: { config: false } }
}
}
};
// HACK: OpenSSL 3 does not support md4 any more, but webpack hardcodes it all over the place: https://github.com/webpack/webpack/issues/13572
const crypto = require("crypto");
const crypto_orig_createHash = crypto.createHash;
crypto.createHash = algorithm => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm);