P粉0266659192023-08-24 10:31:34
If you are using a UNIX-like environment, just use &
as the delimiter:
"dev": "npm run start-watch & npm run wp-server"
Otherwise, if you are interested in a cross-platform solution, you can use the npm-run-all module:
"dev": "npm-run-all --parallel start-watch wp-server"
P粉1436404962023-08-24 00:58:21
Use a package named Concurrency.
npm i concurrently --save-dev
Then set up your npm run dev
task as follows:
"dev": "concurrently --kill-others \"npm run start-watch\" \"npm run wp-server\""