npm build nodejs code example
Example: serve build node npm
# in terminal cd to project root dir
# to build project:
npm run build
# to serve/host project locally:
serve -s ./build
# in terminal cd to project root dir
# to build project:
npm run build
# to serve/host project locally:
serve -s ./build