In my package.json I have these two scripts:
package.json
\"scripts\": { \"start-watch\": \"nodemon run-babel index.js\", \"wp-server\": \"webpack-
Use a package called concurrently.
npm i concurrently --save-dev
Then setup your npm run dev task as so:
npm run dev
"dev": "concurrently --kill-others \"npm run start-watch\" \"npm run wp-server\""