This repository has been archived by the owner on May 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
vue.config.js
94 lines (91 loc) · 2.02 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
productionSourceMap: false,
css: {
loaderOptions: {
sass: {
prependData: `
@import "@/assets/scss/_variables.scss";
`
}
}
},
chainWebpack: config => {
config.module
.rule('svg')
.exclude.add(resolve('src/assets/images'))
.end()
config.module
.rule('svg1')
.test(/\.svg$/)
.use('svg-sprite')
.loader('svg-sprite-loader')
.options({
symbolId: 'icon-[name]'
})
.end()
.include.add(resolve('src/assets/images'))
.end()
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
externals: ['better-sqlite3', 'bytebuffer'],
nodeModulesPath: ['../../node_modules', './node_modules'],
builderOptions: {
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true
},
productName: 'Mixin',
appId: 'one.mixin.messenger',
copyright: 'Copyright © 2020 Mixin Team',
artifactName: 'mixin-${version}.${ext}',
mac: {
category: 'public.app-category.social-networking',
target: [
{
target: 'default',
arch: ['x64']
},
{
target: 'pkg',
arch: ['x64']
}
]
},
afterSign: 'scripts/notarize',
linux: {
executableName: 'mixin-desktop'
},
appx: {
displayName: 'Mixin Desktop'
},
win: {
target: [
{
target: 'nsis',
arch: ['x64']
},
{
target: 'msi',
arch: ['x64']
},
{
target: 'appx',
arch: ['x64']
}
]
},
extraResources: {
from: 'resources/',
to: './'
}
}
}
},
lintOnSave: true
}