"cd client && npm install --only=dev && npm install && npm run build"
- What does
--only=devmean in package.json. - How does its absence affect the code?
"cd client && npm install --only=dev && npm install && npm run build"
--only=dev mean in package.json.This controls whether development or production dependencies (and not both) are installed, as seen here:
The --only={prod[uction]|dev[elopment]} argument will cause either only devDependencies or only non-devDependencies to be installed regardless of the NODE_ENV.