Skip to content

Same bundle hash for modified content across two builds #459

@otbe

Description

@otbe

Do you want to request a feature or report a bug?
Bug

What is the current behaviour?
I get stable hashes for my bundle.js across multiple builds with modified files.

If the current behaviour is a bug, please provide the steps to reproduce.
Create a new project via preact-cli (default template) build it, add something in app.js and rebuild it.
Both artifact versions (bundle.js) get the same hash which breaks distributing via CDN.

What is the expected behaviour?
The second run should generate a different hash. I don’t tried the same thing with the style.css bundle. Maybe it’s the same thing.

Please mention other relevant information.

  • Node version 9.4
  • npm version bundled version
  • Operating system OSX
  • CLI version latest
  • Browser all

P.S.: besides this I’m in love with this cli. Everything works OOTB or can be added via plugin or a small configuration. Great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions