I would like to use $>npm start
and have it use "nodemon" for development and "node" for production. I can't put conditional logic in my package.json file, so how is this best accomplished?
Node.js - nodemon vs node - development vs production
22.8k views Asked by Alexander Mills At
4
nodemon actually reads the
package.start
value, so if you just set thestart
property to what you'd have in production, likenode app.js
, then run nodemon without any arguments, it'll run withpackage.start
and restart as you'd expect in development.