neko/vue.config.js

26 lines
462 B
JavaScript
Raw Normal View History

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': {
target: 'ws://192.168.1.20:3000/',
ws: true,
},
'^/api': {
target: 'http://192.168.1.20:3000/',
},
},
2020-11-30 03:50:08 +13:00
},
2020-11-05 23:56:26 +13:00
}