oaregithub / oare_mono

1 stars 0 forks source link

Webpack Configuration Updates #1479

Open hbludworth opened 2 years ago

hbludworth commented 2 years ago

Oftentimes, when visiting the production site, especially when the client browser cache is cleared, it can take a really long time to load. Often several seconds. In some cases, this is actually causing some reload errors to appear in the error log.

The prime suspect in this case is a poorly set up webpack configuration. As such, minification and package management are probably not being used to their full potential. The resources loaded are just too big.

For this issue, I'd like to purge any unnecessary or repeated node_modules and update the webpack configuration and analysis so that we can speed up load times and prevent the reload bugs from occurring.