-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
51 lines (44 loc) · 1.1 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
const path = require('path');
module.exports = {
configureWebpack: {
entry: {
app: path.resolve(__dirname, 'src/renderer/main.js')
},
resolve: {
alias: {
vue$: 'vue/dist/vue.esm.js'
}
}
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
webviewTag: true,
webSecurity: false,
mainProcessFile: 'src/main/index.js',
// Fix this. This will watch file creation and deletion as well.
mainProcessWatch: ['src/main/**/*.js'],
builderOptions: {
productName: 'SpringrollStudio',
appId: 'io.springroll.studio',
artifactName: '${productName}-${os}-${version}-Setup.${ext}',
directories: {
output: 'build'
},
extraResources: ['extraResources/**'],
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'
}
}
}
}
};