You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
I want to highlight 3 things when using the application-builder
namedChunks: true
The chunks of modules and standalone components are not getting named, its coming as chunk-hashValue.js
outputHashing: false
A hash value is being appended to main.js, styles.css, etc file names even tho I have set that property to false
hash value in ngsw.json
hash values of files which are not modified are changing. (This is working as expected for media files, if I make a change in a svg or something, only that file's hash value is changed and other file's hash value remains the same but that is not the case for code files). This is most likely due to points 1 and 2 but not sure
Please provide the environment you discovered this bug in (run ng version)
I took a look at this but wasn't able to replicate the issue. What I did observe is that when using namedChunks: true and outputHashing: false, the named chunks still include a hash, for example, home-F2O2GWHJ.js. This is expected behavior, as the hash helps prevent chunk name conflicts.
Regarding your point about file hashes changing even when files haven't been modified, I'm not quite sure I follow. From what I can see, file hashes only change when the file contents themselves have changed.
Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
cool will setup a minimal repro in some time and update
regarding the file hashes, yes, I was expecting the hash to not change if the file contents are not changed but right now, in my project, if I do ng build twice without any change to any files whatsoever, all my code files's hashes changes even tho I didn't make any change.
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
I want to highlight 3 things when using the application-builder
namedChunks: true
The chunks of modules and standalone components are not getting named, its coming as chunk-hashValue.js
outputHashing: false
A hash value is being appended to main.js, styles.css, etc file names even tho I have set that property to false
hash value in ngsw.json
hash values of files which are not modified are changing. (This is working as expected for media files, if I make a change in a svg or something, only that file's hash value is changed and other file's hash value remains the same but that is not the case for code files). This is most likely due to points 1 and 2 but not sure
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
Output after ng build:
The text was updated successfully, but these errors were encountered: