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.
web
node
This is good information. I'll definitely look into this. Thanks for this. :)
Kim John
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
andnode
.web
builds JS to be served to web browsers.node
builds JS to run on a server with the nodejs runtime.This is good information. I'll definitely look into this. Thanks for this. :)