2.2.8 • Published 3 years ago

@into233/vue-cli-plugin-proxy v2.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Issue

See the issue than initiated this plugin (#2320)

Installation

yarn add @into233/vue-cli-plugin-proxy
# OR npm install @into233/vue-cli-plugin-proxy

Usage

// vue.config.js
module.exports = {
    pluginOptions: {
        proxies: [{
            enabled: true,
            context: '/api',
            options: {
                target: 'http://127.0.0.1:8081',
                changeOrigin: true
            }
        }, {
            enabled: true,
            context: '/rtc',
            options: {
                target: 'http://127.0.0.1:1985',
                changeOrigin: true
            }
        },]
    }
}

Options

See http-proxy-middleware for options object to pass to the plugin.

Object examples

License

Vue CLI Plugin Proxy is licensed under MIT License.