meteor-bower icon indicating copy to clipboard operation
meteor-bower copied to clipboard

problem with "ignoredDependencies": [ "jquery" ]?

Open thearabbit opened this issue 9 years ago • 3 comments

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.

thearabbit avatar Apr 20 '15 06:04 thearabbit

Do you see jquery in your <head>? If not, it isn't being shipped to the client.

lorensr avatar Apr 20 '15 09:04 lorensr

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": []
    },

sferoze avatar Oct 18 '15 15:10 sferoze

Try putting "ignoredDependencies" in your .bowerrc, that's what worked for me.

ccheshire avatar Feb 18 '16 20:02 ccheshire