DEV Community

Discussion on: Handling Command-line Arguments in NPM Scripts

Collapse
 
felipperegazio profile image
Felippe Regazio • Edited

thats a fair point. in this case, i would prefer to add a new "serve:dev" with the proper stage flag. but I think it did its job as an example (?) :P another way would be to infer the 'development' mode on your application when there is no flag.