presentationAssetsRoot

Deprecated  in 4.2. This attribute is not used anymore - the package is not using private assets anymore.

presentationAssetsRoot: string | PresentationAssetsRootConfig

Path overrides for presentation backend assets. Need to be overriden by application if it puts these assets someplace else than the default.

By default the path to assets directory is determined during the call of Presentation.initialize using this algorithm:

  • if path of .js file that contains PresentationManager definition contains "presentation-backend", assume the package is in node_modules and the directory structure is:

    • assets/*\*/*
    • presentation-backend/{presentation-backend source files}

    which means the assets can be found through a relative path ../assets/ from the JS file being executed.

  • else, assume the backend is webpacked into a single file with assets next to it:

    • assets/*\*/*
    • {source file being executed}.js

    which means the assets can be found through a relative path ./assets/ from the {source file being executed}.

Defined in

Last Updated: 16 April, 2024