-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
60 lines (57 loc) · 1.55 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
const webpack = require('webpack');
const fs = require('fs');
// import webpack from 'webpack'
// import fs from 'fs'
const packageJson = fs.readFileSync('./package.json');
const version = JSON.parse(packageJson).version || 0;
module.exports = {
transpileDependencies: ['vuetify'],
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
'process.env': {
HD_APP_VERSION: '"' + version + '"'
}
})
]
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
// preload: 'src/server.js',
builderOptions: {
appId: 'hardocs.github.io',
productName: 'Hardocs Desktop',
// copyright: '',
publish: [
{
provider: 'github'
// releaseType: ['draft', 'prerelease', 'release']
}
],
linux: {
target: ['zip', 'deb'],
category: 'System'
// icon: 'src/assets/icons/icon.png'
},
win: {
target: 'zip'
// oneClick: true,
// category: 'System',
// icon: 'src/assets/icons/icon.ico'
// uninstallerIcon: 'src/assets/icons/icon.ico',
// shortcutName: 'Hardocs'
},
mac: {
category: 'public.app-category.utilities',
target: 'zip'
// publish: ['github']
// icon: 'src/assets/icons/icon.icns'
// type: 'dis'
},
// options placed here will be merged with default configuration and passed to electron-builder
files: ['**/*']
}
}
}
};