Webpack捆绑软件分析器不适用于Jhipster Angular应用程序

我正在使用jhipster网关应用程序作为微服务的网关。

要分析我的webpack捆绑包,我正在尝试以下方法

npm install -g webpack-bundle-analyzer

在您的Angular应用中,运行ng build --stats-json

在这里出现如下错误

Cannot determine project or target for command.
Error: Cannot determine project or target for command.
    at BuildCommand.initialize (C:\Rk\gateway\node_modules\@angular\cli\models\architect-command.js:122:23)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runmain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
iCMS 回答:Webpack捆绑软件分析器不适用于Jhipster Angular应用程序

webpack-bundle-analyzer已为prod构建的JHipster应用程序预先配置。您可以在webpack.prod.js中找到其配置。

要查看输出,请运行npm run webpack:prod并打开target/classes/stats.html(或在build而不是target中进行gradle)

本文链接:https://www.f2er.com/2121606.html

大家都在问