forked from gaograce/java-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
29 lines (28 loc) · 789 Bytes
/
vue.config.js
File metadata and controls
29 lines (28 loc) · 789 Bytes
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
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
// ......
devServer: {
disableHostCheck: true,
port: 29999
},
chainWebpack: config => {
config.module
.rule('images')
.use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, { limit: 0 }))
},
configureWebpack: {
resolve: {
alias : {
'vscode': require.resolve('monaco-languageclient/lib/vscode-compatibility')
}
},
plugins: [
new MonacoWebpackPlugin({
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
languages: ['javascript', 'css', 'html', 'typescript', 'json', 'java']
})
]
}
}