Re: [conversejs] Re: How to remove jQuery, Underscore, Bootstrap dependencies
- Jc Brand
- 2014-10-24 @ 08:50
On Thu, Oct 23, 2014 at 06:46:04PM +0200, Martin Litvaj wrote:
> I have an Angular website with jQuery 2 and Lo-Dash already included. I
> would like to use ConverseJS but I noticed, there is jquery 1.11 and
> Underscore included in minified version. There is also Bootstrap and BS
> JS, which I dont want, because I use AngularStrap for BS, and I dont know
> if there wont be a conflict.
The bootstrap dependency is only for the https://conversejs.org website, and is
not needed for converse.js itself.
Converse.js uses require.js to manage and load its dependencies, and a bundle
of all the code (converse.js and its dependencies) is then created via the
Ideally, you should also be using require.js to manage your app's JS
If you do, it's as simple as updating the main.js file to specify any
additional dependencies and to replace or modify any of the existing ones.
See converse.js's main.js:
With the require.js Optimizer, there are different builds that can be made.
See for example these:
Some people are still living in the stone age and try get by without a module
For these poor misguided souls, there is the non-AMD version of converse.js:
The docs have more info on this: