DEV Community

Discussion on: Gulp vs Web-pack

 
jkimquickdev profile image
Kim John

Ohh! Could please elaborate this little: "Webpack can compile to targets besides the web". Thanks for your response. :)

Kim John

Thread Thread
 
crenshaw_dev profile image
Michael Crenshaw

Sure! The target is specified in Webpack's config (just a JSON object full of settings). There are a number of target options, but the two I'm familiar with are web and node. web builds JS to be served to web browsers. node builds JS to run on a server with the nodejs runtime.

Thread Thread
 
jkimquickdev profile image
Kim John

This is good information. I'll definitely look into this. Thanks for this. :)

Kim John