You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,17 @@ Be sure to see [assets.rake](https://github.com/shakacode/react-webpack-rails-tu
173
173
The `webpack.rails.config.js` file generates client-bundle.js which is then included
174
174
by the Rails asset pipeline.
175
175
176
+
##jQuery with Rails and Webpack
177
+
jQuery and jQuery-ujs are not required within `app/assets/javascript/application.js`
178
+
and have been moved under`/client` and managed by npm. The modules are exposed via entry point
179
+
by `webpack.common.config.js`.
180
+
181
+
In `application.js`, it's critical that any libraries that depend on jQuery come after the inclusion
182
+
of the Webpack bundle, such as the twitter bootstrap javascript.
183
+
184
+
Please refer to [Considerations for jQuery with Rails and Webpack](http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344) for further info.
185
+
186
+
176
187
## Sass and images
177
188
1. The Webpack server loads the images from the **symlink** of the
0 commit comments