4 ms·
Because writing the require statement in every file is annoying, probably. I do something similar with jQuery - I require it in my bootstrap file, then do
by untog 12y ago
Because writing the require statement in every file is annoying, probably. I do something similar with jQuery - I require it in my bootstrap file, then do
window.$ = jQuery
Global variables are a bad thing until they're a really convenient thing.
- cwmma 12y agoprotip, global.$ = jQuery;