Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to run multiple npm scripts parallel

If you're using an UNIX-like environment, just use & as the separator:

"dev": "npm run start-watch & npm run wp-server"
Otherwise if you're interested on a cross-platform solution, you could use npm-run-all module:

"dev": "npm-run-all --parallel start-watch wp-server"

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #multiple #npm #scripts #parallel
ADD COMMENT
Topic
Name
4+5 =