meteor-bower
meteor-bower copied to clipboard
problem with "ignoredDependencies": [ "jquery" ]?
I try add select2
and ignore jquery
like this
{
"name": "my-app",
"version": "0.0.1",
"dependencies": {
"select2": "3.5.2"
},
"ignoredDependencies": [
"jquery"
],
"private": true
}
but after installed, in .meteor/local/bower
folder has jquery
too.
Do you see jquery in your <head>
? If not, it isn't being shipped to the client.
I also have jquery as an ignored dependency but I still see it in the bower folder. I even tried uninstalling jQuery specifically (bower asks if its ok to uninstall jquery since another package depends on it, I choose yes).
But upon starting meteor again bower automatically installs jquery again. But in my bower I have jquery in ignored dependencies and also in my bower overrides
"overrides": {
"jquery": {
"main": []
},
Try putting "ignoredDependencies" in your .bowerrc, that's what worked for me.