cli.js 330 B

1234567891011121314151617
  1. #!/usr/bin/env node
  2. "use strict";
  3. const importLocal = require("import-local");
  4. const runCLI = require("../lib/bootstrap");
  5. if (!process.env.WEBPACK_CLI_SKIP_IMPORT_LOCAL) {
  6. // Prefer the local installation of `webpack-cli`
  7. if (importLocal(__filename)) {
  8. return;
  9. }
  10. }
  11. process.title = "webpack";
  12. runCLI(process.argv);