registerResourceDependency | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function registerResourceDependency

    • Register a resource as a dependency for the a module. If the dependency is modified the module will be invalidated (and thus be reloaded when requested again).

      Parameters

      • mod: NodeModule

        The module which will be invalidated when the resource changes. You should use module for this parameter

      • path: string

        The absolute disk path to the resource to watch, or a resource path starting with "mod::"

      Returns void