Created by: pstrh
Fixes CSS Module class name collisions (#9134 and #10190) by adding the app name as a hash salt. The change preserves #6875 (closed). The css module hash is stable within the project but globally unique (as long as the app name is unique).
Test steps:
- Create an application
- Create a App.module.css, import and use it in App.js
- Start the application and check the generated hash
- Stop the application and change appName in package.json
- Start the application and check the generated hash
Previous: The generate css module hash stays the same.
Now: The generate css module hash changes as the app name has been changed.
Please let me know if you need more information.