@smock/vue-cli-plugin-sproxy

0.1.28 • Public • Published

Usage

Installation:

npm i @smock/vue-cli-plugin-sproxy

使用方式

该服务会在任何vue子命令启动时启动。(只有在process.env.NODE_ENV为development时或未定义时生效。)

例如: 该服务会在运行npm run serveyarn serve时自动运行。 该服务会运行在配置文件制定的端口。 详细信息可以查看控制台输出。

如何禁用?

启动serve时指定环境变量NO_INTERCEPTOR=true即可。

也可以作为vue-cli-service子命令启动

注意:使用命令启动时请指定NO_INTERCEPTOR环境变量为true。目的是禁止自动启动的服务。

{
  // ...
  "scripts": {
    "sproxy": "vue-cli-service sproxy --port 5000"
  }
  // ...
}

Then you can run command to start the interceptor service.

npm run sproxy

Configuration Documents:

See here:(https://www.npmjs.com/package/@smock/interceptor)

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @smock/vue-cli-plugin-sproxy

    Weekly Downloads

    12

    Version

    0.1.28

    License

    MIT

    Unpacked Size

    3.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • shihaowang
    • hand-osc
    • tonyhuanchen
    • nemoj
    • dwsf
    • waynew
    • aboyl
    • huihuawk
    • sunchir
    • hellostandby
    • lin_summer
    • jmysxy