ljvmiranda921 / ljvmiranda921.github.io

✨ Github repository for my website

Home Page:https://ljvmiranda921.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WTF is webpack

ljvmiranda921 opened this issue · comments

Good catchy title lol
I mean, I still don't know what webpack is. All descriptions I've seen are just similar to how most people define monads:

All told, a monad in X is just a monoid in the category of endofunctors of X, with product × replaced by composition of endofunctors and unit set by the identity endofunctor.

Here's one I've seen for webpack:

Webpack is a module bundler. Webpack can take care of bundling alongside a separate task runner. However, the line between bundler and task runner has become blurred thanks to community-developed webpack plugins. Sometimes these plugins are used to perform tasks that are usually done outside of webpack, such as cleaning the build directory or deploying the build although you can defer these tasks outside of webpack.

What the f*ck? 🤷‍♂️

Some things I want to clear out for myself:

  1. What is bundling? Aren't we bundling things already?
  2. Why do I want to bundle my stuff?