Overpacking: A Common Webpacker Mistake
05-Dec-2019 1639
First, let's take a step back. If you're new to Webpack and Webpacker for Rails, chances are you may be making some simple mistakes.I know this because I was once in your shoes struggling to learn how Webpack works. I've also spent a lot of time helping others on my team, on StackOverflow, and via rails/webpacker Github issues.One of the most frequently-reported issues I've seen is slow build times. This is often coupled with high memory and CPU usage. For Heroku users on small dynos, resource-intensive asset precompilation can lead to failed deploys.More often than not, the root cause is a simple oversight in directory structure—a mistake I call "overpacking".
Overpacking: A Common Webpacker Mistake #ruby #rubydeveloper #rubyonrails #Overpacking: #Common #Webpacker #Mistake #webpacker https://rubyonrails.ba/link/overpacking-a-common-webpacker-mistake