关键是使用HashCheck这个工具进行比较。
In this document we describe how to use the tool to check if Spartacus libraries being used by customers were modified. This tool checks Spartacus libraries being used by a customer are “pristine” - same as from npmjs.
Follow below steps:
1- Download the attached jar file.
2- Copy the content of below folders in the customer source code to a temporary folder
…/cloud-commerce-spartacus-storefront/dist/core
…/cloud-commerce-spartacus-storefront/dist/storefrontlib
3- Copy the content of below folder in the Sparatacus pristine source code to a temporary folder
…/cloud-commerce-spartacus-storefront/dist/core
…/cloud-commerce-spartacus-storefront/dist/storefrontlib
4- Execute the jar file by running
java -jar Downloads/HashCheck.jar
5- Enter the path to the temporary folder you created for customer libararies
6- Enter the path to the temporary folder you created for Spartacus pristine libraries.
8- if the libraries are changed the application would let you know.