neko/vue.config.js
2021-09-01 19:13:36 +02:00

22 lines
418 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: {
'^/api': {
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
},
},
},
}