Skip to content

Identical chunk hash names, different file contents #3341

@monfa-red

Description

@monfa-red

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions