3 ms·
I think the benefit of using webpack/browserify for bundling modules and writing modular code is pretty compelling...
by tracker1 10y ago
I think the benefit of using webpack/browserify for bundling modules and writing modular code is pretty compelling...
- ehnto 10y agoIt 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.