Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-mock2easy

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-mock2easy - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

2

package.json
{
"name": "grunt-mock2easy",
"description": "mock接口,生成md文档",
"version": "0.1.11",
"version": "0.1.12",
"homepage": "",

@@ -6,0 +6,0 @@ "author": {

@@ -54,4 +54,27 @@ # grunt-mock2easy

## 和 grunt-contrib-connect 实现ajax请求跨域
修改 `Gruntfile.js` 中 connect的配置
```js
connect: {
server: {
options: {
middleware: function(connect) {
return [
require('connect-livereload')(
{port: globalSetting.liveReloadPort}
),
require('./database/do') //引入数据接口生成文件中的do.js脚本
];
},
},
},
},
```
联调时只需要改变 `do.js` 中的 `hostname` 和 `port` 即可,
## Release History
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc