forked from e6Hub/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
50 lines (50 loc) · 1.24 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
module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
nodeModulesPath: ['../../node_modules', './node_modules'],
builderOptions: {
appId: 'saektide.esix-hub.app',
productName: 'e6Hub',
// Windows
win: {
target: 'nsis',
icon: './e6hub.ico'
},
nsis: {
installerLanguages: 'en_US',
installerIcon: './e6hub_ins.ico',
uninstallerIcon: './e6hub_unins.ico',
oneClick: false,
runAfterFinish: false,
allowToChangeInstallationDirectory: true
},
// Linux
linux: {
target: 'AppImage',
synopsis: 'An e621/e926 client',
category: 'Network',
icon: './build/icons'
},
appImage: {
artifactName: "e6hub-Linux-${arch}.AppImage"
},
publish: {
provider: 'github',
owner: 'e6Hub',
repo: 'app'
}
}
}
},
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('babel-loader')
.loader('babel-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
},
}