-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
102 lines (97 loc) · 2.15 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
100
101
102
const path = require('path');
const webpack = require('webpack');
function resolveSrc(_path) {
return path.join(__dirname, _path);
}
module.exports = {
publicPath: '',
lintOnSave: true,
configureWebpack: {
optimization: {
// We no not want to minimize our code.
minimize: false
},
// 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
}),
],
},
pluginOptions: {
cordovaPath: 'src-cordova',
i18n: {
lazy:true,
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: false
},
electronBuilder: {
electronBuilder: {
nodeIntegration: true
},
nodeModulesPath: [
'../../node_modules',
'./node_modules'
],
builderOptions: {
productName: 'smart2fa',
appId: 'io.smartholdem.2fa',
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.tools',
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": "Tools",
"target": [
"deb",
"AppImage",
"snap"
],
"synopsis": "SmartHoldem 2FA APP",
icon: 'build/icons/icon.icns'
},
}
},
},
css: {
sourceMap: true
},
}