Skip to content

IMA 20 legacy javascript chunks wrong contenthash runtime x filename #661

Description

@vaclav-pur

Hi,
with updating on IMA 20 we discovered, that for legacy javascript webpack generates different contenthash for chunks (async router) to runtime and as filenames. Bundle is ok.
We used this hotfix to fix it ima.config.js:

        if (ctx.isClient) {
            config.output = config.output || {};
            config.output.chunkFilename = 'static/js/chunk.[id].[chunkhash:16].js';
        }

Please let me know whether you need anything more.

Václav Pur

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