angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Identical chunk hash names, different file contents

Open monfa-red opened this issue 10 years ago • 5 comments

OS?

Kubuntu 16.04

Versions.

angular-cli: 1.0.0-beta.21 node: 6.9.1 os: linux x64

Repro steps.

ng build --prod --aot

The log given by the failure.

It doesn't fail!

Mention any other details that might be useful.

The generated hashed chunks have the same filenames compare to the previous build when the contents of the files are different!!

Let say I build the app using ng build --prod --aot and one of the chunk names is 16.25b41a1d87472f09d7df.chunk.js , then I change/update code and build it again, now the main chunk gets a different hash name but some of the chunks keep the same previous name although they have a slightly different content, this causes problem since the old chunk gets cached in our users browsers.

It usually happens when I add a new component to the app and run the AoT build

monfa-red avatar Dec 01 '16 14:12 monfa-red

check https://github.com/Poky85/webpack-chunkhash-demo ?

pavel-mxsf avatar Dec 01 '16 14:12 pavel-mxsf

@pavel-mxsf seems like it reflects the same hashing issue, any solution to fix it for angular-cli?

monfa-red avatar Dec 01 '16 15:12 monfa-red

Already being discussed in #3311

grizzm0 avatar Dec 01 '16 17:12 grizzm0

Dupe of #3311

hansl avatar Dec 16 '16 22:12 hansl

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.