I guess I will try rewording this in a brand new post. Very vanilla website has existing jQuery and bootstrap $.fn plugins. Need to build production.js that is CanJS app which depends on window.jQuery. Can't build, I'm assuming because the physical jquery must exist to build, but this is counterproductive as now $.fn is written anew.
TL;DR Is there any way to build a production.js that depends on window.jQuery; without overwriting a page's existing jQuery instance?
building normally causes this very obvious error:
Here is my dummy jquery.js that I map to in my stealconfig.js. Works great in development mode, of course:
TL;DR Is there any way to build a production.js that depends on window.jQuery; without overwriting a page's existing jQuery instance?
building normally causes this very obvious error:
- !!!!!!!!!!! ERROR !!!!!!!!!!!
-message = Cannot call method "extend" of undefined
-fileName = file:////Users/admin/Documents/Web/gangframe/public/js/apps/can/util/jquery/jquery.js
-lineNumber = 2
-name = TypeError
error loading html element [object HTMLScriptElement] TypeError: Cannot call method "extend" of undefined
Here is my dummy jquery.js that I map to in my stealconfig.js. Works great in development mode, of course:
- steal(function() {
return window.jQuery;
})
Is there any way to build a production.js that depends on window.jQuery; without overwriting a page's existing jQuery instance?