Files
yn/frontend/vue.config.js
T
2019-07-31 15:31:24 +08:00

22 lines
406 B
JavaScript

module.exports = {
devServer: {
port: 8066,
proxy: {
'/api': {
target: 'http://localhost:3000'
},
'/ws': {
target: 'http://localhost:3000',
ws: true
}
}
},
chainWebpack: config => {
config.plugin('copy').tap(args => {
args[0][0].from = 'node_modules/monaco-editor/min/vs'
args[0][0].to = 'vs'
return args
})
}
}