nuysoft / Mock

A simulation data generator
http://mockjs.com
Other
19.53k stars 2.66k forks source link

Bower.json缺少main字段 #45

Closed luozhihua closed 9 years ago

luozhihua commented 9 years ago

当我使用grunt-wiredep插件自动将所有已安装的bower包引用到HMTL页面时,会报错,提示mockjs未被注入到HTML中,经测试发现是因为MockJs的bower.json的main字段没有设置所导致的。

解决方法:

  1. 在bower.json中加入"main": ["mock.js"]
  2. 在github的Mock仓库创建新的tag(release).
nuysoft commented 9 years ago

done. https://github.com/nuysoft/Mock/releases