-
Notifications
You must be signed in to change notification settings - Fork 12k
Include scripts with filenames containing hash using custom webpack config #12582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation. That said, considering that from what I am understanding you have 2 builds, there would be no way to reference the hashed file in the previous file. |
@alan-agius4 thanks for the reply there is already a StackOverflow question for this. It is useless to suggest to do so again. According to your last paragraph
This is a valid feature request which is getting rejected because of technical limitation, I am right? |
For future readers... This can be achieved using Check #5885 (comment) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
angular/cli 6 supports custom webpack config were one can specify a custom application bootstrap.
custom webpack config can be specified as such
then the output bundle can be reference in
angular.json
and then used as such
Problem/Question/Request
Caching might become a problem with the setup above! What if we need to hash the
custom-app.js
bundle usingwebpack
hashcontent
?This will no longer result in
custom-app.js
but instead something likecustom-app1247989898989.js
.Is there a way to load the hashed file in angular?
I am sorry if this might looks as a support question, but I got no luck on SE https://stackoverflow.com/questions/52785348/angular-cli-reference-a-hashed-scripts
The text was updated successfully, but these errors were encountered: