Refactor moveAssetsInOrder in buildProduction to avoid circular reference errors in dependency graphs where Html assets are circular linked with HtmlAnchors