
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@smock/vue-cli-plugin-smock
Advanced tools
npm i @smock/vue-cli-plugin-smock
注意:本插件只有在process.env.NODE_ENV等于development或不定义时生效。
该服务会在运行npm run serve 或 yarn serve时自动运行。
运行地址与vue开发服务地址一致。
例如:开发服务运行在http://localhost:8080,则mock接口也运行在此端口。
打开此地址的/__doc__路径即可查看文档,例如:http://localhost:8080/__doc__。
如何禁用?
启动serve时指定环境变量NO_SMOCK=true即可。
例如:
{
// ...
"scripts": {
"serve": "cross-env NO_SMOCK=true vue-cli-service serve"
}
// ...
}
注意:使用命令启动时请指定NO_SMOCK环境变量为true。目的是禁止自动启动的服务。
{
// ...
"scripts": {
"smock": "vue-cli-service smock --port 6000"
}
// ...
}
Then you can run command to start the interceptor service.
npm run smock
Configuration Documents:
FAQs
Vue cli plugin of @smock/mock
We found that @smock/vue-cli-plugin-smock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.