Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

8ab9e9e · Jul 22, 2017

History

History
8 lines (5 loc) · 820 Bytes

jquery-with-react-on-rails.md

File metadata and controls

8 lines (5 loc) · 820 Bytes

jQuery with Rails and Webpack

jQuery and jQuery-ujs are not required within app/assets/javascript/application.js and have been moved under/client and are managed by npm. The modules are exposed via entry point by client/webpack.client.base.config.js and, for jquery-ujs, in the client/webpack.client.rails.build.config.js and the client/webpack.client.rails.hot.config.js.

In application_non_webpack.js, it's critical that any libraries that depend on jQuery come after the inclusion of the Webpack bundle.

Please refer to Considerations for jQuery with Rails and Webpack for further info.