Demystifying Webpack Table of Contents Demystifying Webpack Some Background Enter Webpack Loaders Plugins Conclusion Some Background I’ve played with a lot of the Javascript build tools in the ecosystem. Today, Webpack is my go to. I like it because it adds static analysis to my file paths for virtually everything. It also has fairly clear ways in which it transforms files. As with any tool, there’s trade-offs to it. I can’t get map files working for my unit tests, and the initial builds can take a really long time (upwards of a minute). Sure I can turn some features off to speed it up, but then I’ll miss certain errors. For example, Angular’s dependency injection system can lean on just the function parameter names, which break when any kind of minification is done. If I’m not minifying, I’m potentially missing those errors. ...

7 min · 1450 words · Logan Barnett