2.2.8 • Published 3 years ago
@into233/vue-cli-plugin-proxy v2.2.8
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
- Just like the original repo, see deraw/vue-cli-plugin-proxy: 🔌 Provide all http-proxy-middleware options to vue-cli.Just change proxy to proxies array.
License
Vue CLI Plugin Proxy is licensed under MIT License.
2.2.8
3 years ago