`rev` option: bundle hash is not stable
See original GitHub issueI’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:
- Define a bundle in aurelia.json like this:
{
"name": "the-bundle.js",
"source": [
"[**/folder/**/*]"
]
}
- Create some components(.html and .js pairs) in
folder
. There are about 30 components in my case. - Enable rev for prod
- Run
npm run prod
several times.
- What is the motivation / use case for changing the behavior?
- When we do a deployment, we only want to replace the bundle with changes.
- Making the hash stable can help on website performance.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep. Thanks!
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.