- Notifications
You must be signed in to change notification settings - Fork7
🔌 Provide all http-proxy-middleware options to vue-cli
License
NotificationsYou must be signed in to change notification settings
deraw/vue-cli-plugin-proxy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This plugin is meant to provide allhttp-proxy-middleware options to vue-cli.
Seethe issue than initiated this plugin (#2320)
yarn add @deraw/vue-cli-plugin-proxy# OR npm install @deraw/vue-cli-plugin-proxy// vue.config.jsmodule.exports={pluginOptions:{proxy:{enabled:true,context:'',options:{// ...}}}}
Seehttp-proxy-middleware foroptions object to pass to the plugin.
- First example of the docs:
// vue.config.jsmodule.exports={pluginOptions:{proxy:{enabled:true,context:'/api',options:{target:'http://www.example.org',changeOrigin:true}}}}
- v1.0.0 default:
// vue.config.jsmodule.exports={pluginOptions:{proxy:{enabled:true,context:['/**','!/dist/**'],options:{target:'http://127.0.0.1:8000'}}}}
Vue CLI Plugin Proxy is licensed underMIT License.
About
🔌 Provide all http-proxy-middleware options to vue-cli
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.
