-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
61 lines (58 loc) · 1.66 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
/* eslint-disable no-template-curly-in-string */
const os = require('os').platform()
const path = require('path')
const StyleLintPlugin = require('stylelint-webpack-plugin')
process.env.VUE_APP_VERSION = require('./package.json').version
module.exports = {
lintOnSave: 'warning',
pluginOptions: {
electronBuilder: {
preload: 'src/main/preload.js',
mainProcessWatch: [
'src/main/**'
],
mainProcessFile: 'src/main.js',
rendererProcessFile: 'src/client.js',
builderOptions: {
linux: {
target: ['deb'],
category: 'Utility',
executableName: 'Sentinel dVPN',
artifactName: '${productName}-${version}.${ext}'
},
deb: {
afterInstall: 'scripts/linux/after-install.sh',
depends: ['gconf2', 'gconf-service', 'libnotify4', 'libappindicator1', 'libxtst6', 'libnss3', 'openresolv', 'wireguard-tools'],
afterRemove: 'scripts/linux/after-uninstall.sh',
artifactName: '${productName}-${version}.${ext}'
},
extraFiles: [
{
from: `scripts/${os}/`,
to: `scripts/${os}/`
}, {
from: `bin/${os}`,
to: `bin/${os}`
}
]
}
},
'style-resources-loader': {
preProcessor: 'scss',
patterns: [
path.resolve(__dirname, './src/client/styles/variables/index.scss'),
path.resolve(__dirname, './src/client/styles/mixins/font.scss')
]
}
},
configureWebpack: {
plugins: [
new StyleLintPlugin({
files: ['./src/**/*.{vue,less}']
})
]
},
devServer: {
proxy: 'http://localhost:9090'
}
}