mirror of
https://github.com/purocean/yn.git
synced 2026-10-28 03:23:57 +08:00
22 lines
406 B
JavaScript
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
|
|
})
|
|
}
|
|
}
|