Bower different dependencies using different jquery versions

103 Views Asked by At

As the title says I have dependencies which have different versions of jquery. How can I resolve this? Since only one version is in jquery/jquery.min.js

1

There are 1 best solutions below

3
On

You can specify jQuery Versions:

$ bower install jquery#1.11.1  --save

So in package.json you might have something like:

"dependencies": {
    "jquery": "2.0.0",
    "jquery-1.9.1": "http://code.jquery.com/jquery-1.9.1.js"
}

You can specify <, > and ~ to specify, less than, greater than and starting with.

$ bower install "jquery#<2.0 >1.10"