🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lighting-plugin-proxy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighting-plugin-proxy

> lighting-plugin-proxy 支持为 light 工程的请求配置代理地址。

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
9
80%
Maintainers
1
Weekly downloads
 
Created
Source

lighting-plugin-proxy 支持为 light 工程的请求配置代理地址。

安装

注:安装 proxy 插件之前,请确保您已经安装 lighting 脚手架工具

light plugin -a proxy //安装

light plugin -u proxy //更新

light plugin -r proxy //卸载

使用

在工程根目录下的 project.json 中注册 proxy 插件,并进行自定义配置:

{
    "project":"lightdemo",
    "version":"0.0.1",
    "desc":"lightdemo",
    "type":"vue",
    "plugins":["proxy"],
    "pluginConfig": {
        "proxy": {
            "/stream1": {
                "target": "https://www.toutiao.com",
                "cookiePathRewrite": {
                    "/test/":"/"
                },
                "changeOrigin": true
            },
            "/stream2": "https://www.toutiao.com"
        }
    }
}

文档

了解更多 lighting-plugin-proxy 插件的信息,请点击这里

更新记录

v1.0.1

  • 支持自定义参数配置。

FAQs

Package last updated on 17 May 2019

Did you know?

Socket

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