-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
66 lines (60 loc) · 1.4 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
// eslint-disable-next-line no-undef
module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
// mutate config for production...
} else {
}
},
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: 'pingu-sync',
productName: 'PinguSync',
mac: {
icon: './src/assets/logo/app/icon/mac/icon.icns',
category: 'public.app-category.utilities'
},
win: {
icon: './src/assets/logo/app/icon/windows/512x512.png'
},
extraFiles: [
{
from: './src/keys',
to: 'src/keys',
filter: [
'**/*'
]
}
]
},
disableMainProcessTypescript: false,
mainProcessTypeChecking: false,
nodeIntegration: true,
chainWebpackRendererProcess: (config) => {
config.module.rules.delete('eslint');
}
},
i18n: {
localDir: 'locales'
},
quasar: {
importStrategy: 'kebab',
rtlSupport: true
}
},
chainWebpack: (config) => {
config.module.rule('i18n')
.resourceQuery(/blockType=i18n/)
.type('javascript/auto')
.use('i18n')
.loader('@kazupon/vue-i18n-loader')
.end();
},
runtimeCompiler: true,
lintOnSave: false,
transpileDependencies: [
'quasar',
/[\\/]node_modules[\\/]quasar[\\/]/,
]
};