Using RequireJS sugar syntax in main.js files
I love the sugar API of RequireJS. It’s elegant, clean and nearly identical to CommonJS. However, the examples often fail to demonstrate how to use it from a main.js file which does a require call, rather than a define. Doing something like this is quite useful, particularly when your config object is not a require call in itself: (function(config, require,… Read more →
Recent Comments