Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
require('hops-build').runBuild(argv, (error, stats) => {
if (error) {
console.error(error.stack.toString());
process.exit(1);
} else {
console.log(
stats.toString({
chunks: false,
modules: false,
entrypoints: false,
}),
'\n'
);
require('hops-express').runServer(argv);
}
});
} else {
require('hops-build').runBuild({ clean: true }, function() {
require('hops-express').runServer({}, function(error, _app) {
app = _app;
port = app.address().port;
done(error);
});
});
});