The generated sha384 encoding did not match that of the actual file.
I set the integrity parameter of the cli to true. The generated sha384 encoding did not match that of the actual file. Analysis of the source code found that the plugin was actually the asset obtained in the alterAssetTagGroups hook of the htmlwebpackplugin and generated the hash. Breakpoint debugging found that the asset at this time was not the final content obtained by source(), so the generated encoding did not match.
Version
5.0.8
Environment info
Steps to reproduce
set config { crossorigin: 'anonymous', integrity: true, } run: vue-cli build
What is expected?
Files can be matched correctly
What is actually happening?
The generated sha384 encoding did not match that of the actual file.
I set the integrity parameter of the cli to true. The generated sha384 encoding did not match that of the actual file. Analysis of the source code found that the plugin was actually the asset obtained in the alterAssetTagGroups hook of the htmlwebpackplugin and generated the hash. Breakpoint debugging found that the asset at this time was not the final content obtained by source(), so the generated encoding did not match.