- Upgrade to RequireJS and r.js 1.0.4
- Pulled #22, fix for asset compliation failure with no config/requirejs.yml. Thanks @arehberg!
- Upgrade to RequireJS and r.js 1.0.3
-
This is a quick turn to fix an issue that could trigger an Anonymous mismatched define() error from require.js and/or r.js.
The preferred way to use the helper tag is now with an argument, like so:
<%= requirejs_include_tag "application" %>
This usage ensures that the above helper will correctly generate a data-main attribute for the script tag. The requirejs_include_tag helper still works without an argument, and won't generate data-main in that case.
Thanks to Andrew de Andrade for the catch.
- Precompilation via
rake assets:precompile
is now implemented. - gem configuration via application.js is deprecated.
- Application-specific require.js configuration lives in
config/requirejs.yml
. - See README for updated usage details.
- Fixed stupid problems with Rails::Engine instantiation.
- Test improvements
- Upgrade to RequireJS 1.0.2
- Birthday!
- This gem makes
require.js
and theorder.js
plugin available to the Rails 3 Asset Pipeline.