最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Yeoman Angular Generator Grunt Build scriptsvendor.js is Empty - Stack Overflow

programmeradmin0浏览0评论

I have generated an angular project via yo angular [project-name], tried building it via grunt build. I checked the dist/scripts/vendor.d41d8cd9.js file and I see it empty. I found this issue and it didn't help me at all. If anyone can point me to the right direction, it would be greatly appreciated.

I have generated an angular project via yo angular [project-name], tried building it via grunt build. I checked the dist/scripts/vendor.d41d8cd9.js file and I see it empty. I found this issue and it didn't help me at all. If anyone can point me to the right direction, it would be greatly appreciated.

Share Improve this question asked Jun 17, 2014 at 4:04 ryeballarryeballar 30.1k10 gold badges66 silver badges76 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 24

I found the answer somehow, I changed the build:js tag from:

<!-- build:js scripts/vendor.js -->
<!-- bower:js -->

<!-- endbower -->
<!-- endbuild -->

to:

<!-- build:js(./) scripts/vendor.js -->
<!-- bower:js -->

<!-- endbower -->
<!-- endbuild -->

and it solved my problem :)

发布评论

评论列表(0)

  1. 暂无评论