DISCLAIMER: This does not fix your specific problem, but it helped me, so maybe it will help other people.
I use grunt-bower-task to pull files into the lib directory. I wanted to exclude "angular" and just include "angular.js". One of my dependencies was "angular". In my bower.json , I now have:
{ "name": "myapp", "version": "0.0.1", "dependencies": { "angular.js": "1.3.15", "angular-bootstrap": "0.13.0", "angular-cookies": "1.3.15", "angular-storage": "0.5.0", "angular-ui-router": "0.2.15", "mjolnic-bootstrap-colorpicker": "2.1" }, "exportsOverride": { "angular": { "dump": "*.xxx" }, "angular.js": { "js": [ "*.js", "*.js.map" ], "css": "*.css" } }, "resolutions": { "angular": "1.3.15" } }
In my gruntfile.js , I have:
bower: { install: { options: { targetDir: './lib', layout: 'byType', install: true, cleanTargetDir: true, cleanBowerDir: false } } },
This stops copying the "angular" files to the destination.
Steve N Jun 19. '15 at 16:31 2015-06-19 16:31
source share