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.

18 lines
454 B

6 years ago
const { spawn } = require('child_process');
const nodemon = require('nodemon');
6 years ago
const webpack = spawn('webpack', ['--config', 'build/webpack.dev.conf.js'], {
stdio: 'inherit',
shell: false
6 years ago
});
var env = Object.create(process.env);
env.LOG_LEVEL = 'debug';
nodemon({ env, script: 'dist/server-dev.js' })
.on('start', function () {
console.log('nodemon started');
}).on('crash', function () {
console.log('hastic-server crashed');
});