-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
47 lines (47 loc) · 1.16 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
const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = defineConfig({
pages: {
index: 'src/main.js',
postIt: 'src/views/post_it/main.js',
editPage:'src/views/edit/main.js',
subEdit:'src/views/sub_edit/main.js',
},
transpileDependencies: [
'vuetify'
],
configureWebpack: {
plugins: [new NodePolyfillPlugin()]
},
pluginOptions:{
electronBuilder:{
customFileProtocol: "./",
nodeIntegration:true,
builderOptions: {
mac: {
icon: 'build/icons/icon.icns'
},
win: {
icon: 'build/icons/icon.ico'
},
linux: {
icon: 'build/icons/icon.png'
},
extraResources: [
{
"from": "src/todos/data.json",
"to": "app/data/todos/data.json"
},
{
"from": "src/postits/data.json",
"to": "app/data/postits/data.json"
}
],
nsis:{
oneClick:false,
allowToChangeInstallationDirectory:true,
}
}
}
}
})