2 ms·
It is, but it is a lot of tooling and knowledge overhead for a problem that can often be solved using whatever backend framework you're using. Or even no framew
by ehnto 10y ago
It is, but it is a lot of tooling and knowledge overhead for a problem that can often be solved using whatever backend framework you're using. Or even no framework at all.
Laravel for example, it is very easy to only include JS files you need on a given page and make them modular using even vanilla JS.
You can even concat and minify it all, and it's all cacheable and idiomatic to the framework.
I guess the main issue is if I am spending more time on tooling and configuration of all the different parts of a build process then I lose the efficiency gains. For something like webpack there are no efficiency gains to begin with, as you can write modular JS without it.
It definitely has it's place and I am sure if I were exclusively a frontend dev I might find it more compelling.
But I can achieve clean, modular and reusable JS without it so it's one less tool I need to worry about.