generator-gulp-angular
generator-gulp-angular copied to clipboard
Wiredep not injecting angular-foundation-6.
Spare me if this was already answered but I can't find a solution for now. I'm trying to use the latest angular-foundation-6, but it's not injected in to the index.html when serve.
Got it working for now. I hope there's a better way than this.
<!-- build:js(src) scripts/vendor.js -->
<!-- bower:js -->
<!-- run `gulp inject` to automatically populate bower script dependencies -->
<!-- endbower -->
<script src="../bower_components/angular-foundation-6/dist/angular-foundation.js"></script>
<!-- endbuild -->
This should be as everytime the bower.json from the lib which is not filled right. There is a doc about that.
For me it works. I installed angular-foundation-6 via bower install --save angular-foundation-6
. After I run gulp inject
it's injected in my .tmp/serve/app/index.html
.
Is it really not injected or does the order matter? Did you forget to inject it in angular?
It also could be that you didn't use --save
in the bower install. Libs which are not in the local bower.json are not injected.
@Swiip even if I did --save
still not injecting. I also checked angular-foundation-6 bower.json, and it has the correct main.
"main": [
"dist/angular-foundation.js"
]
Please lead me to a doc link.