2020-11-05 23:56:26 +13:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
productionSourceMap: false,
|
|
|
|
configureWebpack: {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
vue$: 'vue/dist/vue.esm.js',
|
|
|
|
'~': path.resolve(__dirname, 'src/'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
devServer: {
|
2020-11-30 03:50:08 +13:00
|
|
|
disableHostCheck: true,
|
2020-11-30 04:14:09 +13:00
|
|
|
proxy: {
|
|
|
|
'^/ws': {
|
2021-01-28 02:57:16 +13:00
|
|
|
target: 'ws://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
2020-11-30 04:14:09 +13:00
|
|
|
ws: true,
|
|
|
|
},
|
|
|
|
'^/api': {
|
2021-01-28 02:57:16 +13:00
|
|
|
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
2020-11-30 04:14:09 +13:00
|
|
|
},
|
|
|
|
},
|
2020-11-30 03:50:08 +13:00
|
|
|
},
|
2020-11-05 23:56:26 +13:00
|
|
|
}
|