info.js 386 B

12345678910111213141516171819
  1. "use strict";
  2. const envinfo = require("envinfo");
  3. /**
  4. * Prints debugging information for webpack issue reporting
  5. */
  6. module.exports = function info() {
  7. console.log(
  8. envinfo.run({
  9. System: ["OS", "CPU"],
  10. Binaries: ["Node", "Yarn", "npm"],
  11. Browsers: ["Chrome", "Firefox", "Safari"],
  12. npmPackages: "*webpack*",
  13. npmGlobalPackages: ["webpack", "webpack-cli"]
  14. })
  15. );
  16. };