You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const { spawn } = require('child_process');
|
|
|
|
|
|
|
|
const webpack = spawn('webpack', ['--config', 'build/webpack.dev.conf.js'], {
|
|
|
|
stdio: 'inherit',
|
|
|
|
shell: false
|
|
|
|
});
|
|
|
|
|
|
|
|
var env = Object.create(process.env);
|
|
|
|
env.LOG_LEVEL = 'debug';
|
|
|
|
|
|
|
|
const nodemon = spawn(
|
|
|
|
'nodemon',
|
|
|
|
['--exec', '"node --inspect dist/server.js"'],
|
|
|
|
{ env: env, shell: true }
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
nodemon.stdout.pipe(process.stdout);
|
|
|
|
nodemon.stderr.pipe(process.stderr);
|