javad bat
javad bat
Sep 3, 2018 · 1 min read

gulp and system js is more natural than webpack . you create your server with express and let it do the jobs then add gulp to watch file for change and compile and system js to load the file when it needed from network .

if you need bundling you just make a bundle in your first build and you can see which package is loaded in browser or what's the problem with url and etc.

in webpack you let one tool do all the job it's good in first but when you lost control for example we have our custom router in our web app that load js file when needed based on dynamic url it get. but in webpack you can't use dynamic import. debugging in webpack is also is much harder. code mapper is work with poor performance . and config it to lazy load is pain in the ass.

in my opinion if you want start a small app use webpack because it's really easy to setup and keep but when you have a app for different tech and really complicated routing and paging use gulp to save your control over your application .

in a brief webpack is like apple product if you love their simplicity and lack of control and let company to do all the job in their own way the webpack is yours