1.0.13 • Published 2 years ago
@gyh-cli/vue-cli-plugin-mock v1.0.13
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插件
}
};
1.0.13
2 years ago