Use a package called concurrently.
npm i concurrently --save-dev
Then setup your npm run dev
task as so:
"dev": "concurrently --kill-others \"npm run start-watch\" \"npm run wp-server\""
More Related Contents:
- `npm build` doesn’t run the script named “build” in package.json
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- Client on Node.js: Uncaught ReferenceError: require is not defined
- nodeJs callbacks simple example
- Handling multiple catches in promise chain
- Returning a value from callback function in Node.js [duplicate]
- How to wrap async function calls into a sync function in Node.js or Javascript?
- Share variables between files in Node.js?
- Puppeteer – scroll down until you can’t anymore
- Are all Node.js callback functions asynchronous?
- Swap key with value in object
- Is possible to check if a collection or sub collection exists?
- using AngularJS html5mode with nodeJS and Express
- Node js socket explanation
- Modify file in place (same dest) using Gulp.js and a globbing pattern
- How to publish a module written in ES6 to NPM?
- node.js /socket.io/socket.io.js not found
- How do I add an action to watson conversation response?
- Firebase – Get Random Child From Database Node
- Error: 10 ABORTED: Too much contention on these documents. Please try again
- How to mock Axios with Jest?
- Does every object in JS have a toString() method?
- MissingSchemaError: Schema hasn’t been registered for model “User”
- Where argument of first next() call goes? [duplicate]
- How do you completely remove Ionic and Cordova installation from mac?
- express.js – how to intercept response.send() / response.json()
- Pass Node.js environment variable with Windows PowerShell [duplicate]
- sails.js access controller method from controller method
- detect whether ES Module is run from command line in Node
- Promise.resolve().then vs setImmediate vs nextTick