3 ms·
> it minifies your javascript and html, optimizes images, and more or less does what webpack does (minus the typescript -> js compilation). The main point of w
by fenomas 9y ago
> it minifies your javascript and html, optimizes images, and more or less does what webpack does (minus the typescript -> js compilation).
The main point of webpack isn't minification and so on, it's wrangling dependencies. It lets you define a JS module, which can declare dependencies on other modules or assets, and so on recursively, and webpack parses everything out and bundles the necessary pieces together such that they can all see each other.
If your JS isn't in modules, but just files that can be uploaded and minimized, why were you using webpack in the first place?