Something has changed in the latest UniversalViewer (https://github.com/UniversalViewer/universalviewer)
Previously the build process would build all files into a uv/build/uv-xx-xx-xx directory. Which could then be moved as required and used something like so:
<div class="uv" style="min-width:750px; min-height:750px; height:100%; max-height:100%; margin:0 auto; background-color: #000"
data-fullscreen="0"
data-assetsequenceindex="0"
data-assetindex="0"
data-locale="en-GB:English,cy-GB:Welsh"
data-uri="/<?php echo $partner; ?>/<?php echo $identifier; ?>/manifest"
<?php echo $extra; ?>
></div>
<script type="text/javascript" id="embedUV" src="/packages/uv/build/uv-xx-xx/lib/embed.js"></script>
</body>
</html>
Unfortunately the build process appears to have changed but not been documented fully. Compiled js files now appear in the src/ directory and a .build/ directory.
If I use the whole uv/ directory, there is an error that uv.js is missing.
If I use only the uv/.build/ directory. Then the embed.js is missing.
What is the correct procedure after running grunt build --dist to now get the above php file working again?
After running
grunt buildin UV3, you will nee to copy over the./examplesdirectory and that should function similarly.