-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
40 lines (38 loc) · 1.04 KB
/
vue.config.js
File metadata and controls
40 lines (38 loc) · 1.04 KB
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
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
lintOnSave: false,
parallel: false, // Disable parallel processing to avoid neo-async issues
css: {
loaderOptions: {
less: {
import: [
resolve('src/assets/styles/var.less'),
],
modifyVars: {
'btn-height-base': '30px',
'input-height-base': '30px',
},
javascriptEnabled: true,
},
},
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
chainWebpackMainProcess: (config) => {
config.externals({
express: 'commonjs express',
})
// Ignore warnings for optional native dependencies
// config.resolve.alias.set('cpu-features', path.resolve(__dirname, 'empty-cpu-features.js'))
// config.resolve.alias.set('./crypto/build/Release/sshcrypto.node', path.resolve(__dirname, 'empty-sshcrypto.js'))
},
// mainProcessWatch: [
// 'src/server/**/*',
// ],
},
},
}