"cd client && npm install --only=dev && npm install && npm run build"
--only=dev
在package.json中是什么意思。这种控制开发或生产的依赖关系(而不是两者)是否安装,因为看到这里:
The --only={prod[uction]|dev[elopment]} argument will cause either only devDependencies or only non-devDependencies to be installed regardless of the NODE_ENV.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句