Git Product home page Git Product logo

proxy's Introduction

proxy README

以 webpack devServer 方式开启本地服务并启动域名代理

Features

兼容 webpack devServer 配置

Requirements

需要在项目根目录增加 .proxyrc.js 配置文件,写入需要的配置信息。

例如:

module.exports = {
  hot: true,
  host: '0.0.0.0',
  port: 8080,
  https: false,
  hotOnly: false,
  disableHostCheck: true,
  proxy: {
    '/search/': {
      target: 'http://www.xxx.cn',
      // pathRewrite: { '^/search/': '' },
      secure: false,
      changeOrigin: true,
      cookieDomainRewrite: {
        'xxx.net': ''
      },
      logLevel: 'debug'
    },
    '/get': {
      target: 'http://www.xxx.cn',
      secure: false,
      changeOrigin: true
    },
  }
};

Extension Settings

Known Issues

Release Notes

0.1.0

增加代理与解析参考 vue-service https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/lib/commands/serve.js#L97

0.0.4

移动生产环境依赖组件

0.0.3

调试处理发布后无法显示的问题

0.0.2

只是换了图标

0.0.1

发布初级版本

proxy's People

Contributors

smalike avatar

Stargazers

Xu avatar

Watchers

James Cloos avatar

Forkers

venliong

proxy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.