@gyh-cli/vue-cli-plugin-mock

1.0.13 • Public • Published

vue-cli-plugin-mock

TODO: description

Usage

const vueCliPluginMock = require('vue-cli-plugin-mock');

// TODO: DEMONSTRATE API
module.exports = {
  devServer: {
    open: true,
    port: 8080,
    publicPath: "/",
    inline: true,
    proxy: { // 配置代理
      "/hp": {
        target: "https://xxx.immomo.com/",
        changeOrigin: true
      }
    }
  },
  crossorigin: "anonymous",
  pluginOptions: {
    matchProxyList: ["/hp"], // mock插件的路由
    mock: true, //开启mock插件
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i @gyh-cli/vue-cli-plugin-mock

Weekly Downloads

1

Version

1.0.13

License

ISC

Unpacked Size

43.6 kB

Total Files

10

Last publish

Collaborators

  • gyh-cli