Socket
Socket
Sign inDemoInstall

@deraw/vue-cli-plugin-proxy

Package Overview
Dependencies
17
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @deraw/vue-cli-plugin-proxy

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


Version published
Weekly downloads
187
decreased by-12.21%
Maintainers
1
Install size
2.23 MB
Created
Weekly downloads
 

Changelog

Source

v2.2.7 (05-08-2020)

  • ⬆️ Upgrade http-proxy-middleware to v1.0.5

Readme

Source

Vue CLI proxy plugin

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

NPM Version NPM Downloads License The issue

Issue

See the 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.js
module.exports = {
    pluginOptions: {
        proxy: {
            enabled: true,
            context: '',
            options: {
                // ...
            }
        }
    }
}

Options

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

Object examples

  • First example of the docs:
// vue.config.js
module.exports = {
    pluginOptions: {
        proxy: {
            enabled: true,
            context: '/api',
            options: {
                target: 'http://www.example.org',
                changeOrigin: true
            }
        }
    }
}
  • v1.0.0 default:
// vue.config.js
module.exports = {
    pluginOptions: {
        proxy: {
            enabled: true,
            context: [
              '/**',
              '!/dist/**'
            ],
            options: {
                target: 'http://127.0.0.1:8000'
            }
        }
    }
}

License

Vue CLI Plugin Proxy is licensed under MIT License.

Keywords

FAQs

Last updated on 05 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc