Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use requirejs to Create Packaged Version #71

Closed
wants to merge 1 commit into from

Conversation

matthewwithanm
Copy link

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. 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 you mentioned, but they're still working out some things that impact EventEmitter, so I decided to just adapt your already existing browser-list-sources task.

This ensures that the packaged file will work with AMD loaders.
@desandro
Copy link
Owner

I appreciate the contribution, but I feel the whole point of AMD is that it loads Modules. So either use Bower, or manually manage the dependencies. The packaged source file is designed for quick-and-straight forward in-browser use.

@desandro desandro closed this May 30, 2013
desandro added a commit that referenced this pull request Nov 23, 2013
desandro added a commit that referenced this pull request Nov 23, 2013
desandro added a commit that referenced this pull request Nov 23, 2013
@desandro
Copy link
Owner

I apologize for my past ignorance. I didn't understand how the generated file with RequireJS would be the equivalent of the imagesloaded.pkgd.js. I have integrated your requirejs task into the build process. You should now be able to use imagesloaded.pkgd.js with RequireJS.

@matthewwithanm
Copy link
Author

Oh neat. Thanks!

@matthewwithanm matthewwithanm deleted the rjs-build branch March 12, 2014 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants