npm - Node.js - nodemon vs node - development vs production -
i utilize $>npm start , have utilize "nodemon" development , "node" production. can't set conditional logic in package.json file, how best accomplished?
nodemon reads package.start value, if set start property you'd have in production, node app.js, run nodemon without arguments, it'll run package.start , restart you'd expect in development.
node.js npm nodemon
No comments:
Post a Comment