Updated Development (markdown)
parent
5c648c2dfa
commit
d91aabc22a
@ -80,3 +80,10 @@ public function createComment($pasteid, $parentid, $commentid, $comment)
|
||||
$comment['meta']['postdate'] // int UNIX timestamp
|
||||
}
|
||||
```
|
||||
|
||||
## Subresource Integrity for Javascript resources
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user