I have the following scripts
property in package.json
:
"scripts": {
"start": "webpack -w && nodemon server.js",
"watch:server": "nodemon server.js",
"watch:build": "webpack -w",
},
When I run npm run start
it only starts the webpack -w
command but not the nodemon server.js
command. I thought having &&
will run the scripts sequentially but it is definitely not the case for me. I have seen many people chaining execution with &&
and it works fine.
Why is mine not working?