How can minify conversejs without jquery

From:

Huxisuz Hu

Date:

2014-07-16 @ 13:01

Hello,
If I want to minify conversejs and don't expect jquery to be included and
minified js, then how can I
achieve that, since my website use its own jquery, I don't want jquery to
be loaded twice. thanks in advance
Best Regards
Lancelot Hu

Re: [conversejs] How can minify conversejs without jquery

From:

jitu@ideas2it

Date:

2014-07-17 @ 05:11

Use non-amd Version of converse.js so it will resolve your problem.... :) :)
On Wed, Jul 16, 2014 at 6:31 PM, Huxisuz Hu <huxisuz@gmail.com> wrote:
> Hello,>> If I want to minify conversejs and don't expect jquery to be included and> minified js, then how can I> achieve that, since my website use its own jquery, I don't want jquery to> be loaded twice. thanks in advance>>> Best Regards>> Lancelot Hu>

Re: [conversejs] How can minify conversejs without jquery

From:

Huxisuz Hu

Date:

2014-07-17 @ 06:35

thanks for your answer, I've looked at non-amd version, it seems that
manually include all js files in html rather than using requirejs to fetch.
I think I can using grunt uglify tools to concat all the independent files
to just one minified js and without jquery included. thanks in advance
2014-07-17 13:11 GMT+08:00 jitu@ideas2it <jitendara@ideas2it.com>:
> Use non-amd Version of converse.js so it will resolve your problem.... :)> :)>>> On Wed, Jul 16, 2014 at 6:31 PM, Huxisuz Hu <huxisuz@gmail.com> wrote:>>> Hello,>>>> If I want to minify conversejs and don't expect jquery to be included and>> minified js, then how can I>> achieve that, since my website use its own jquery, I don't want jquery to>> be loaded twice. thanks in advance>>>>>> Best Regards>>>> Lancelot Hu>>>>

Re: [conversejs] How can minify conversejs without jquery

From:

Jc Brand

Date:

2014-07-18 @ 13:48

On Wed, Jul 16, 2014 at 09:01:01PM +0800, Huxisuz Hu wrote:
> Hello, > If I want to minify conversejs and don't expect jquery to be included and> minified js, then how can I > achieve that, since my website use its own jquery, I don't want jquery to> be loaded twice. thanks in advance> Best Regards> Lancelot Hu
I've never made a build without jquery, so I'm not sure how well it would work.
The best is to manage ALL the javascript in your site with require.js.
Then you can specify exactly what you need and make a single build for all JS.
Regards
JC