Closed mix5003 closed 4 years ago
Hi @mix5003, from your package.json
, I am seeing a lot dependencies and some of those are relatively big, which might be the result in slow builds, but we'd like to take a look at the reproduction first.
Can you share the reproduction privately with the team?, thanks
i invited you. please take a look.
Hi @mix5003, thanks for the reproduction.
Seeing the large amount of dependencies in your application that eventually tools in the pipeline like Webpack, Build-Optimizer and Terser will need to speend more time and resources to optimize the output.
In this case the biggest chunk of time is caused by Webpack's module concatenation, this unfortunately is based on the total modules in the compilation, so the more you add the slower the build will become. You can disable module concatenation using 3rd party builders such as ngx-build-plus, this is not recommended because while this does speed up your build it generates larger bundles and code which is slower to execute in the browser.
My personal suggestion would be the evaluate if all the dependencies are really needed . I am seeing multiple UI frameworks such as ngprime
, bootstrap
, ng-dracula
and more...
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
🐞 Bug report
Description
"ng build --prod" is slow. my project build time in bitbucket pipeline or google cloud build may take up to 17 minutes for one build.
🔬 Minimal Reproduction
i can not re-produce it. i not sure it relate to project size or may be project sturcture. if you want i can share my project in privately.
🔥 Exception or Error
no error. but it too slow
🌍 Your Environment
Anything else relevant? package.json
angular.json
tsconfig.json