Skip to content Skip to sidebar Skip to footer
Showing posts with the label Requirejs

Limit Line Length With Requirejs + Uglify

We're using requirejs.optimize(config) with uglify2 in our build scripts to minify our producti… Read more Limit Line Length With Requirejs + Uglify

Module Pattern- How To Split The Code For One Module Into Different Js Files?

For the module pattern, I'm doing something like: (function(namespace) { // tons of code … Read more Module Pattern- How To Split The Code For One Module Into Different Js Files?

Can't Get Backbone-relational To Work With Amd (requirejs)

I have the following Backbone router definition in CoffeeScript: // appointments_router.js.coffee d… Read more Can't Get Backbone-relational To Work With Amd (requirejs)

Requirejs Order Of Dependencies

if you have a RequireJS module like so: define( [ '#patches', 'back… Read more Requirejs Order Of Dependencies

Load Stripe.js With Require.js

I'm having trouble loading Stripe.js with Require.js. My setup looks a bit like this requirejs.… Read more Load Stripe.js With Require.js

Is It A Bad Practice To Use The Requirejs Module As A Singleton?

I plan to use the following pattern to make use of the requireJS based module to act as a singleton… Read more Is It A Bad Practice To Use The Requirejs Module As A Singleton?