Overpacking: A Common Webpacker Mistake

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 #webpacker https://rubyonrails.ba/single/overpacking-a-common-webpacker-mistake

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles