Skip to content

Index.html does not update it's bundle reference when contentHash is true and is watching files. #1886

@raphaklaus

Description

@raphaklaus

🐛 bug report

Index.html does not update it's bundle reference when contentHash is true and Parcel is watching files.

🎛 Configuration (.babelrc, package.json, cli command)

Command line to start: rm -drf dist && ./node_modules/.bin/parcel src/index.html

🤔 Expected Behavior

Always re-create index.html accordingly with the newest bundles.

😯 Current Behavior

After making some changes in the code, Parcel will automatically build a new bundle for, let's say, your JavaScript code. It will be available in your dist folder. But index.html have a reference to the first bundle.

Software Version(s)
Parcel 1.9.7
Node > 9
npm/Yarn
Operating System Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions