question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`rev` option: bundle hash is not stable

See original GitHub issue

I’m submitting a bug report

  • Library Version: 0.24.0

Please tell us about your environment:

  • Operating System: Windows Server 2012

  • Node Version: 6.1.0

  • NPM Version: 3.9.0

Current behavior: We enabled rev option for prod, and the bundle hash changes every time we run npm run prod even source files don’t have any changes. We compare the bundles, and found the source files are not loaded in a stable order when generate bundle.

Expected/desired behavior:

  • What is the expected behavior? The bundle hash should not change if no changes in source files.

Steps to reproduce:

  1. Define a bundle in aurelia.json like this:
    {
        "name": "the-bundle.js",
        "source": [
          "[**/folder/**/*]"
        ]
    }
  1. Create some components(.html and .js pairs) in folder. There are about 30 components in my case.
  2. Enable rev for prod
  3. Run npm run prod several times.
  • What is the motivation / use case for changing the behavior?
  1. When we do a deployment, we only want to replace the bundle with changes.
  2. Making the hash stable can help on website performance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
EisenbergEffectcommented, Feb 12, 2017

Yep. Thanks!

0reactions
AStokercommented, Mar 29, 2017

Closing this (since it was initially a duplicate). Please resume discussion over at the original issue https://github.com/aurelia/cli/issues/378, I’ll reopen that one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bundle not updating after included file has changed (returns ...
It all starts working again and any changes i make to my css file the bundler hash changes correctly. Just adding this answer...
Read more >
git-bundle Documentation - Git
Used to create a bundle named file. This requires the <git-rev-list-args> arguments to define the bundle contents. options contains the options specific to ......
Read more >
Changelog - pip documentation v22.3.1
BACKWARD INCOMPATIBLE Removed the deprecated --no-install and --no-download options. BACKWARD INCOMPATIBLE No longer implicitly support an insecure origin ...
Read more >
Caching - webpack
We can use the output.filename substitutions setting to define the names of ... As you can see the bundle's name now reflects its...
Read more >
hg(1) - Linux manual page - man7.org
For ssh:// destinations, no working directory or .hg/hgrc will be created on the ... These options (or 'clone src#rev dest') imply --pull, even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found