Socket
Socket
Sign inDemoInstall

@deraw/vue-cli-plugin-proxy

Package Overview
Dependencies
79
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
Maintainers
1
Install size
3.86 MB
Created

Changelog

Source

v2.2.5 (16-07-2019)

  • 📝 Update README

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 16 Jul 2019

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