bs-config.js 324 Bytes
let proxy = require('http-proxy-middleware');
let fallback = require('connect-history-api-fallback');
module.exports = {
    server: {
        middleware: {
            1: proxy('/', {target: 'http://localhost:8091', changeOrigin: false }),
            2: fallback({index: '/index.html', verbose: true})
        }
    },
};