fix(example): fix HDR loader in react example #3038
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Attempting to use the react example app as a stand alone app base can result in the HDR files form scene composer not loading and breaking at run time under vite.
To make using the example be a better starting point for new appliation development adding stand alone vite support for HDR files to the default vite.config.ts settings.
Verifying Changes
Runs when built inside iot-app-kit.
If examples/react-app is copied to it's own folder and npm install and npm run start are run on it as a stand alone application the vite server should not through any errors about not having a loader for hdr files.
Scene Composer
For
scene-composer
package changes specifically, you can preview the component in the published storybook artifact. To do this, wait for thePublish Storybook
action to complete below.To run the storybook build locally, you need a local static web server:
Then open the website http://localhost:8080 to run the doc site.
Legal
This project is available under the Apache 2.0 License.