mirror of
https://github.com/purocean/yn.git
synced 2026-10-28 02:32:17 +08:00
30 lines
586 B
JavaScript
30 lines
586 B
JavaScript
module.exports = {
|
|
devServer: {
|
|
port: 8066,
|
|
proxy: {
|
|
'/static': {
|
|
target: 'http://localhost:3044'
|
|
},
|
|
'/api': {
|
|
target: 'http://localhost:3044'
|
|
},
|
|
'/ws': {
|
|
target: 'http://localhost:3044',
|
|
ws: true
|
|
}
|
|
}
|
|
},
|
|
chainWebpack: config => {
|
|
config.plugin('copy').tap(args => {
|
|
args[0][0].from = 'node_modules/monaco-editor/min/vs'
|
|
args[0][0].to = 'vs'
|
|
args[0][1] = {
|
|
from: 'public/*.*',
|
|
to: '[name].[ext]',
|
|
toType: 'template'
|
|
}
|
|
return args
|
|
})
|
|
}
|
|
}
|