-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
45 lines (44 loc) · 1.13 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
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
configureWebpack: {
resolve: {
symlinks: false
},
plugins: [
new MonacoWebpackPlugin({
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
languages: ['javascript', 'css', 'html', 'typescript', 'json']
})
]
},
devServer: {
// host:'0.0.0.0',
port: 8999
},
transpileDependencies: [/\bvue-awesome\b/],
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: 'edu.pku.smartcommit',
productName: 'SmartCommit',
copyright: 'Copyright © 2019 Bo Shen',
directories: {
buildResources: 'assets'
},
extraFiles: [
'git-sc'
],
compression: 'maximum',
nsis: {
oneClick: false,
perMachine: false,
allowToChangeInstallationDirectory: true,
displayLanguageSelector: true,
// only run with command
createDesktopShortcut: false,
createStartMenuShortcut: false
}
}
}
}
}