Function: rewriteResourcePath()
rewriteResourcePath(
document,from,to):number
Rewrites resource-reference attributes equal to from, returning how many were changed. Use this
when a transform renames a resource (e.g. textures/a.png → textures/a.webp).
Parameters
document
from
string
to
string
Returns
number