This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
vue.config.js
65 lines (63 loc) · 1.41 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
const globals = require('./globals');
const defineGlobals = (config) => {
config.plugin('define').tap((args) => {
const defined = globals.reduce((prev, curr) => {
prev[curr] = JSON.stringify(process.env[curr]);
return prev;
}, {});
args[0] = defined;
return args;
});
};
module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackMainProcess: defineGlobals,
chainWebpackRendererProcess: defineGlobals,
// List native deps here if they don't work
externals: [
'keytar',
'israeli-bank-scrapers-core',
],
builderOptions: {
productName: 'israeli-bank-scrapers-desktop',
appId: 'com.electron.israeli-bank-scrapers-desktop',
dmg: {
contents: [
{
x: 410,
y: 150,
type: 'link',
path: '/Applications',
},
{
x: 130,
y: 150,
type: 'file',
},
],
},
mac: {
icon: 'build/icons/icon.icns',
},
win: {
icon: 'build/icons/icon.ico',
},
linux: {
target: [
'AppImage',
'snap',
'deb',
],
icon: 'build/icons',
},
},
},
mainProcessWatch: [
'src/service',
],
},
transpileDependencies: [
'vuetify',
],
};