desandro/imagesloaded — pull request #71 by matthewwithanm (2013-05-30 00:42:20+00:00)
Title: Use requirejs to Create Packaged Version

This ensures that the packaged file will work with AMD loaders (#68).

The output differs only in that the modules [are defined with a name][1]. I tried to change as little as possible; for example, it's still using grunt-contrib-uglify to do the uglification even though grunt-contrib-requirejs can do that for you.

I took a look at [the plugin][2] [you mentioned][3], but they're [still working out][4] some things that impact EventEmitter, so I decided to just adapt your already existing browser-list-sources task.

[1]: http://requirejs.org/docs/api.html#modulename
[2]: https://github.com/yeoman/grunt-bower-requirejs
[3]: https://github.com/desandro/imagesloaded/issues/68#issuecomment-18644161
[4]: https://github.com/yeoman/grunt-bower-requirejs/pull/21