Navigate the world of Webpacker and webpack on Rails with confidence using this collection of mental maps I put together.
My name is Ross Kaffenberger. I'm a principal engineer at Stitch Fix.
Need help with webpack and Webpacker? That's my jam.
Check out my writing, talks and projects. You can also connect with me on GitHub, Twitter, and Medium.
When running Rails system or integration tests, you might be surprised to learn that Webpacker will load your development webpack config. What's the deal?
In this post, we'll take a look at installing and using the webpack-bundle-analyzer, perhaps the most invaluable webpack plugin, to analyze and debug the output of the webpack build in a Rails project configured to use Webpacker.
A new Rails 6 application will install both Webpacker and Sprockets by default. Don't they solve the same problem? This article dives into why Sprockets lives on even though webpack has surpassed most of its features and why you might want to choose one over the other.
Understanding your Rails webpack configuration and build output can be a little confusing, especially if you're new to either Rails or webpack. This post contains a few tips for debugging your Webpacker setup, some specific to Rails Webpacker, some generally applicable to webpack.