neko/vue.config.js
2020-11-29 16:14:09 +01:00

26 lines
462 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://192.168.1.20:3000/',
ws: true,
},
'^/api': {
target: 'http://192.168.1.20:3000/',
},
},
},
}