-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Possible Simplified Rails Configuration without Asset Pipeline #696
Comments
I'll check this out over the weekend. In the meantime, any comments on: #671 |
@justin808 It seems like it's the exact same idea. https://github.com/rupurt/webpack-sprockets-rails-manifest-plugin#how-does-it-work describes how I'll play around with https://github.com/mikechau/sprockets-stats-webpack-plugin and come up with 2 example repos so we can compare & contrast the 2 techniques. If |
@justin808 I've added an example app along with the steps required for I'll add extra examples for:
Lmk if you have any questions about how it works or if you have trouble getting setup |
@rupurt Fabulous! |
@rupurt Please let me know how this is going! |
@justin808 I added examples for HMR & a contrasting setup for the From what I can tell they are very similar.
Lmk what you think and how you want to proceed |
Hi @rupurt! Please see rails/webpacker#139. Very soon, we won't be putting Webpack assets through the rails asset pipeline! I hope we can work together on this transition! Maybe take a look at https://github.com/gauravtiwari/webpacker-example-app. CC: @gauravtiwari. |
This is going to be fixed by the updates to use Webpacker. Any volunteers? |
Hey react_on_rails team,
Love the work you've put into the gem and I've made great use out of it over the last year ❤️. My Rails and Webpack configurations have evolved since I first installed the gem. I've got it to the point where there is actually very little configuration needed on either side and have extracted the Asset Pipeline/Webpack integration into a bare bones plugin. I thought I'd drop you guys a note to see what you think about this alternate configuration and if you'd be open to possibly changing the way
react_on_rails
works.https://github.com/rupurt/webpack-sprockets-rails-manifest-plugin
IMHO the biggest win from the simplified configuration is the ability to use standard Rails view helpers to load Webpack build assets directly and skip the Asset Pipeline while still leveraging all the Webpack goodness such as finger printing, HMR.
I've also extracted a second plugin which helps reduce the friction of requiring Webpack assets within asset pipeline files for legacy apps. https://github.com/rupurt/webpack-copy-after-build-plugin
The text was updated successfully, but these errors were encountered: