mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
26 lines
546 B
JavaScript
26 lines
546 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
productionSourceMap: false,
|
|
configureWebpack: {
|
|
resolve: {
|
|
alias: {
|
|
vue$: 'vue/dist/vue.esm.js',
|
|
'~': path.resolve(__dirname, 'src/'),
|
|
},
|
|
},
|
|
},
|
|
devServer: {
|
|
disableHostCheck: true,
|
|
proxy: {
|
|
'^/ws': {
|
|
target: 'ws://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
|
ws: true,
|
|
},
|
|
'^/api': {
|
|
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
|
},
|
|
},
|
|
},
|
|
}
|