function buildAndServe()

in scripts/serve.js [29:44]


function buildAndServe() {
  const args = process.argv.slice(2);
  if (args.length === 0) {
    console.error(
      chalk.red(
        'No custom series name provided. Run `npm run serve <series-name>` to serve a custom series.'
      )
    );
    return;
  }

  console.log('Building...');
  build().then(() => {
    startServer();
  });
}