-
Notifications
You must be signed in to change notification settings - Fork 32
/
vue.config.js
99 lines (95 loc) · 2.19 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
95
96
97
98
99
const path = require('path');
const webpack = require('webpack');
function resolveSrc(_path) {
return path.join(__dirname, _path)
}
module.exports = {
configureWebpack: {
// Set up all the aliases we use in our app.
resolve: {
alias: {
'src': resolveSrc('src'),
'assets': resolveSrc('src/assets'),
}
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 6
}),
],
},
css: {
// sourceMap: true
sourceMap: process.env.NODE_ENV !== 'production'
},
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: false
},
electronBuilder: {
nodeModulesPath: [
'../../node_modules',
'./node_modules'
],
builderOptions: {
npmRebuild: false,
productName: 'PaperWallet',
appId: 'top.paperwallet.app',
compression: 'store',
artifactName: '${name}-${os}-${arch}-${version}.${ext}',
directories: {
output: 'build/target'
},
win: {
target: 'nsis',
icon: 'build/icons/icon.ico'
},
nsis: {
perMachine: true,
oneClick: false,
allowToChangeInstallationDirectory: true
},
mac: {
category: 'public.app-category.finance',
icon: 'build/icons/icon.icns'
},
dmg: {
background: 'build/background.tif',
icon: 'build/icons/icon.icns',
contents: [
{
x: 130,
y: 220
},
{
x: 410,
y: 220,
type: 'link',
path: '/Applications'
}
]
},
linux: {
category: 'Utilites',
target: [
'deb',
'AppImage',
'snap'
],
synopsis: 'Paper Crypto Wallet generator offline',
icon: 'build/icons/icon.icns'
}
}
},
cordovaPath: 'src-cordova'
},
publicPath: '',
outputDir: undefined,
assetsDir: undefined,
runtimeCompiler: undefined,
productionSourceMap: false,
parallel: undefined
};