code: function compile(config) {
    let compiler;
    try {
      compiler = webpack(config);
    } catch (e) {
      printErrors('Failed to compile.', [e]);
      process.exit(1);
    }
    return compiler;
  }
docs: Webpack compile in a try-catch