The packaging config on server only supports the following commands, and the only customizable part is env
.
npm run build --env=prod
This repo provides implementations for differentnpm run script
via shell script or node script.
# shell script
npm run build --env=prod
# node script
npm run build:js --env=prod