Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🔌 Provide all http-proxy-middleware options to vue-cli

License

NotificationsYou must be signed in to change notification settings

deraw/vue-cli-plugin-proxy

Vue CLI proxy plugin

This plugin is meant to provide allhttp-proxy-middleware options to vue-cli.

NPM VersionNPM DownloadsLicenseThe issue

Issue

Seethe issue than initiated this plugin (#2320)

Installation

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

Usage

// vue.config.jsmodule.exports={pluginOptions:{proxy:{enabled:true,context:'',options:{// ...}}}}

Options

Seehttp-proxy-middleware foroptions object to pass to the plugin.

Object examples

  • 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'}}}}

License

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

Stars

Watchers

Forks

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp