Что означает --only = dev в package. json? - PullRequest
1 голос
/ 13 июля 2020

"cd client && npm install --only=dev && npm install && npm run build"

  • Что означает --only=dev в пакете. json.
  • Как его отсутствие влияет на код?

1 Ответ

0 голосов
/ 13 июля 2020

Это определяет, установлены ли зависимости разработки или производства (но не обе), как показано здесь :

The --only={prod[uction]|dev[elopment]} argument will cause either only devDependencies or only non-devDependencies to be installed regardless of the NODE_ENV.
...