I have the following scripts defined in my package.json
:
“scripts”: {
“dev-server”: “nodemon build-js index.js”,
“frontend-server”: “webpack-dev-server”,
}
.I need to trigger both scripts at the same time whenever I start my development process in Node.js. Initially, I considered adding another script like this:
“launch”: “npm run dev-server && npm run frontend-server”
.However, this setup would execute
dev-server
and wait until it completes before launching frontend-server
. What approach should I take to run them concurrently? Additionally, I want to ensure that I can view the
output
from both commands. If your suggestion involves a build tool, please recommend gulp
instead of grunt
, as I have experience with gulp
from another project.