Ok, that was an ‘oops’… You wrote “Watchify denotes Browserify is the module builder which uses main.js as entry point. So app.js is for webpack builds?”
You are correct in surmising that Watchify denotes that Browserify is the module builder. However, app.js is the actual script we create, it’s bundled out as ‘main.js’. This bundling allows us to write in ‘Node.js’ style CommonJS syntax using ‘require()’ etc.
The bundled output is what the browser parses and not the original ‘app.js’.
Per webpack, i haven’t used it much really, but my understanding is that yo can pretty much achieve the same results using either webpack or browserify.
I hope this clarifies things.
If there’s any way i can be of assistance to you on Vue.js, Node.js and other areas, please reach out to me. Cheers.