0

如何在 ng build 中启用调试日志?我想看看是什么basePath。下面的片段来自program_based_entry_point_finder.js

node_modules\@angular\compiler-cli\ngcc\src\entry_point_finder\program_based_entry_point_finder.js

    ProgramBasedEntryPointFinder.prototype.walkBasePathForPackages = function (basePath) {
        var _this = this;
        this.logger.debug("No manifest found for " + basePath + " so walking the directories for entry-points.");
        var entryPoints = utils_1.trackDuration(function () { return _this.entryPointCollector.walkDirectoryForPackages(basePath); }, function (duration) { return _this.logger.debug("Walking " + basePath + " for entry-points took " + duration + "s."); });
        this.entryPointManifest.writeEntryPointManifest(basePath, entryPoints);
        return entryPoints;
    };
  • 试图通过 --verbose 和 --configuration="development" 没有成功。

    ng build --verbose --configuration="development"

  • Angular 配置规范似乎没有任何更改日志级别的选项。 https://angular.io/guide/workspace-config

4

0 回答 0