question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng build --prod is not creating unique hashes

See original GitHub issue

Versions

`Angular CLI: 6.0.0 Node: 8.10.0 OS: win32 x64 Angular: 6.0.0 … animations, cli, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.0 @angular-devkit/build-angular 0.6.0 @angular-devkit/build-optimizer 0.6.0 @angular-devkit/core 0.6.0 @angular-devkit/schematics 0.6.0 @ngtools/webpack 6.0.0 @schematics/angular 0.6.0 @schematics/update 0.6.0 rxjs 6.1.0 typescript 2.7.2 webpack 4.6.0`

Repro steps

  1. Create a site with ng new
  2. Add a lazy path with loadChildren
  3. ng build --prod

Observed behavior

Every time production build happens the hashes in the chunks do not change.

Desired behavior

Every single --prod build should result in unique hashes for cache busting.

Mention any other details that might be useful (optional)

Not sure if this is an issue with Angular cli or with webpack but it’s definitely effecting Angular. I believe it’s also in 5.2.10.

Not sure if this is windows only, but it happens locally on Windows and in VSTS hosted build.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:19
  • Comments:62 (20 by maintainers)

github_iconTop GitHub Comments

21reactions
filipesilvacommented, May 4, 2018

I think you’re having some weird errors and can’t debug it, and so, understandably, you’re frustrated. But this is a tracker for bugs and feature requests. If we can we also try to help with support requests. We’re very lucky to have awesome community members that also spend time trying to help people here in the issue tracker.

But we can’t really help much at all if you don’t fill in the issue template. I read your issue and have no idea what’s going wrong and how to help you. And when other users search the issue tracker and see your issue, it also doesn’t help them.

So I think the best thing to do is to close this issue, and ask you to open a new one. In that new one please fill in the issue template and give us an idea of what’s happening and how to reproduce it. That way we’ll have a chance to help you.

12reactions
alan-agius4commented, Sep 3, 2018

Closing as it looks like the issue has been solved with the answers above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular - Prod Build not generating unique hashes
I have found this issue in my project(Angular cli 14.2.10, I have upgraded from 13v) and I have realized one important thing: If...
Read more >
Prod Build not generating unique hashes-angular.js
Coding example for the question Angular - Prod Build not generating unique hashes-angular.js.
Read more >
ng build output-hashing
Observe that the hashes are IDENTICAL. They shouldn't be. Every time prod code is built every chunk should have unique hashes in the...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
ng build --prod is not creating unique hashes - Bountysource
ng build --prod is not creating unique hashes · Versions. `Angular CLI: 6.0. · Repro steps. Create a site with ng new ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found