resolve
resolve copied to clipboard
Default "start" should be developer mode
Right now, I need to do npm run dev
to run a reSolve app in developer mode, while npm start
runs in production mode. This is counter-intuitive since production mode is only needed for deployment. It is also different from other systems, like the standard react scripts, where start
defaults to developer mode.
I suggest we change this in our templates, perhaps to this:
"scripts": {
...
"dev": "babel-node ./run.js dev",
"prod": "babel-node ./run.js prod",
"start": "babel-node ./run.js dev",
...
},
As a side effect, this would also make the start modes use the same names as the config.xxx.js
files.
I think the same. It lasts from the beginning. yarn start much more intuitive for new users.