![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/node_modules/webpack-cli/bin/ |
#!/usr/bin/env node "use strict"; const Module = require("module"); const originalModuleCompile = Module.prototype._compile; require("v8-compile-cache"); const importLocal = require("import-local"); const runCLI = require("../lib/bootstrap"); const utils = require("../lib/utils"); if (!process.env.WEBPACK_CLI_SKIP_IMPORT_LOCAL) { // Prefer the local installation of `webpack-cli` if (importLocal(__filename)) { return; } } process.title = "webpack"; if (utils.packageExists("webpack")) { runCLI(process.argv, originalModuleCompile); } else { const { promptInstallation, logger, colors } = utils; promptInstallation("webpack", () => { utils.logger.error(`It looks like ${colors.bold("webpack")} is not installed.`); }) .then(() => { logger.success(`${colors.bold("webpack")} was installed successfully.`); runCLI(process.argv, originalModuleCompile); }) .catch(() => { logger.error( `Action Interrupted, Please try once again or install ${colors.bold( "webpack", )} manually.`, ); process.exit(2); }); }