Search code examples
javascriptangularjsyeomanyeoman-generator-angular

Yeoman Angular Generator Grunt Build scripts/vendor.js is Empty


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.


Solution

  • 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 :)