bootstrap.js 456 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. // eslint-disable-next-line @typescript-eslint/no-var-requires
  4. const WebpackCLI = require("./webpack-cli");
  5. const runCLI = async (args) => {
  6. // Create a new instance of the CLI object
  7. const cli = new WebpackCLI();
  8. try {
  9. await cli.run(args);
  10. }
  11. catch (error) {
  12. cli.logger.error(error);
  13. process.exit(2);
  14. }
  15. };
  16. module.exports = runCLI;