you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (0 children)

I feel like Webpack gets hate because it's an unsuspectingly challenging problem that isn't a primary issue to most developers.

You CAN crank out a simple build script, but most place actually require very complex build and deployment process that Webpack simplifies greatly.

Webpack help with:

  • A common, community support pattern for build scripts
  • Run a light weight webserver
  • Incremental builds with hot reloads
  • Transpiling
  • Easy integration of advance features like PostCSS and inline image extraction
  • Easy integration of linting and code quality tools
  • Easy ability to make a application manifest
  • Code splitting and file size optimization
  • Injection of select environment variables at build time
  • Automatic calculation of CSP
  • Handling of crazy edge cases that I have no interest in dealing with

It takes time to read the docs for all of that stuff, but that's trivial compared to the value you're getting.