3 ms·
I was looking at this recently and it’s interesting. But a couple of points. Webpack 5 is actually pretty easy to configure these days. I have a use case of su
by pragmatic 4y ago
I was looking at this recently and it’s interesting. But a couple of points.
Webpack 5 is actually pretty easy to configure these days. I have a use case of supporting angularjs with web workers, service worker (full PWA - it’s a POS that is built to handle low bandwidth, intermittent connections etc while still providing 90% of functionality in offline mode - lots of indexeddb, local storage and service worker magic) and typescript.
It handles it all like magic. The workers are in typescript and yet they “just work” with shared imports (indexeddb wrapper mostly). Service workers get all your /dist resources added and you can still add any custom code you need - which I do.
Also you can use esbuild with webpack (there’s a plug-in of course)
I was dreading using webpack bc my last experience with it in 2015 was not great, but wow, it’s really powerful and actually easy to work with.
Also using it for an electron side project and it’s also great there.
I have to say, parcel and a lot I’d other bundlers just can’t do what webpack handles almost effortlessly.
YMMV of course but webpack 5 is worth a look if you haven’t used it lately.