Mention possibility to manually adjust SRI hashes

rugk 2016-09-11 12:04:26 +02:00
parent 1c341765a4
commit f22d555069

@ -86,4 +86,6 @@ public function createComment($pasteid, $parentid, $commentid, $comment)
Because we implemented [Subresource Integrity (SRI)](https://www.w3.org/TR/SRI/) the SRI hashes in the templates need to be regenerated after each change of a javascript file. To make this easy, we implemented a mechanism for this into the unit testing bootstrap process. After changing any javascript file, follow this process:
* edit the javascript file(s)
* run the unit tests as described above
* deploy the updated javascript file(s) _and_ the updated templates on your webserver
* deploy the updated javascript file(s) _and_ the updated templates on your webserver
Of course you also manually adjust the hashes in the template files. For more information how to do this [have a look at this article](https://scotthelme.co.uk/subresource-integrity/).