You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser name and version: Google Chrome Versión 63.0.3239.132
Operating system and version: Windows 10
Steps to reproduce the problem:
yarn run prod
Concatenate with other JS files
What is the expected behavior?
The box-content-preview library should work when is concatenated with another JS
What went wrong?
At the moment when the library its concatenated with other ones show this message
We're using your library in our project. In dev mode we're including all files listed and works just fine.
But when we build for production, our process takes all JS and minifies and concat all files in a single one (builtApp.js)
At this point, there is a check (https://github.com/box/box-content-preview/blob/master/src/lib/util.js#L603) for a <script... src=".../preview.js... that give us the error
We're trying to sort this issue out by adding dependencies directly to our index.html pointing CDN but we would like to know why is that check, why do you expect to have it like that; maybe we can do some changes and minification would work on this project
The text was updated successfully, but these errors were encountered:
This is related to #521. Currently we need the location of preview.js since we depend on third party assets (e.g. viewer assets like pdf.js, shaka-player.js, etc.). That combined with not wanting to load all third party assets together into one bundle (3D runtime assets are huge and aren't used at all if you're just viewing documents) lead us to an implementation where we expect a specific folder structure.
Environment:
Steps to reproduce the problem:
What is the expected behavior?
The box-content-preview library should work when is concatenated with another JS
What went wrong?
At the moment when the library its concatenated with other ones show this message
We're using your library in our project. In dev mode we're including all files listed and works just fine.
But when we build for production, our process takes all JS and minifies and concat all files in a single one (builtApp.js)
At this point, there is a check (https://github.com/box/box-content-preview/blob/master/src/lib/util.js#L603) for a
<script... src=".../preview.js...
that give us the errorWe're trying to sort this issue out by adding dependencies directly to our index.html pointing CDN but we would like to know why is that check, why do you expect to have it like that; maybe we can do some changes and minification would work on this project
The text was updated successfully, but these errors were encountered: