概念 | webpack
    https://webpack.docschina.org/concepts/图片.png

    1. const webpack = require("webpack");
    2. const config = require("./webpack.config.js");
    3. debugger;
    4. const compiler = webpack(config);
    5. function compilerCallback(err, stats) {
    6. const statsString = stats.toString();
    7. console.log(statsString);
    8. }
    9. debugger;
    10. compiler.run((err, stats) => {
    11. compilerCallback(err, stats);
    12. });