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.
17 lines
454 B
17 lines
454 B
const { spawn } = require('child_process'); |
|
const nodemon = require('nodemon'); |
|
|
|
const webpack = spawn('webpack', ['--config', 'build/webpack.dev.conf.js'], { |
|
stdio: 'inherit', |
|
shell: false |
|
}); |
|
|
|
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'); |
|
});
|
|
|