-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
vue.config.js
56 lines (53 loc) · 1.31 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
module.exports = {
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.use('vue-loader')
.loader('vue-loader') // or `vue-loader-v16` if you are using a preview support of Vue 3 in Vue CLI
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader')
},
configureWebpack: {
devtool: 'source-map'
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
generateUpdatesFilesForAllChannels: true,
builderOptions: {
mac: {
hardenedRuntime: true,
entitlements: './build/entitlements.mac.inherit.plist',
// Disabled m1 due to it messing with the auto updating
//target: {
// target: 'default',
// arch: ['arm64', 'x64']
//}
},
linux: {
target: [
'deb',
'rpm',
'pacman',
'AppImage'
]
},
win: {
icon: '/build/icons/256x256.png',
target: ['nsis', 'portable']
},
publish: ['github'],
appId: 'design.lost.linked',
afterSign: './afterSignHook.js'
}
},
i18n: {
locale: 'en-US',
fallbackLocale: 'en-US',
localeDir: 'locales',
enableInSFC: false
}
}
}