xiaoyouyu

Results 5 comments of xiaoyouyu

`var exec = require('child_process').execSync; exec(’webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --useLocalIp‘, { stdio: 'inherit' })` ![image](https://user-images.githubusercontent.com/23133668/67176905-9f37fc80-f3fe-11e9-8b09-d8ada4879c21.png) @evilebottnawi Please, How to kill this process?

> In my case I've solved same issue by next steps: > > Firstly added Windows-specific code to emit `SIGINT` process event. > > ```js > const rl = require('readline');...

> @xiaoyouyu better use `execa` and use something like this: > > ```js > setTimeout(() => { > subprocess.kill('SIGTERM', { > forceKillAfterTimeout: 2000 > }); > }, 1000); > ```...