Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bower.json缺少main字段 #45

Closed
luozhihua opened this issue Dec 22, 2014 · 1 comment
Closed

Bower.json缺少main字段 #45

luozhihua opened this issue Dec 22, 2014 · 1 comment

Comments

@luozhihua
Copy link

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

解决方法:

  1. 在bower.json中加入"main": ["mock.js"]
  2. 在github的Mock仓库创建新的tag(release).
nuysoft added a commit that referenced this issue Dec 24, 2014
@nuysoft
Copy link
Owner

nuysoft commented Dec 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants