Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for bundling assets like images and CSS into Nebula Supernova Visualizations for Qlik Sense #887

Open
ericbuess opened this issue Jul 19, 2022 · 2 comments

Comments

@ericbuess
Copy link

ericbuess commented Jul 19, 2022

🚀 Feature

Documentation with examples showing how to load non-javascript assets into a Nebula Supernova Visualization that will be imported into Qlik as an extension.

Motivation

It's currently simple to display a png file in a Nebula extension when hosted via nebula serve. However, when running nebula sense to convert it to a Qlik compatible extension, by default, the bundler seems to drop external files like images and CSS. When zipping the dist directory and moving it into Qlik, such assets are no longer available to the extension. Documentation providing instructions about how to tell nebula sense to include assets like images when bundling the project as a Qlik extension would alleviate the confusion.

nebula-bug-1

Additional context

Trying to import the files shows an error that may indicate plugins needed for Rollup to include such file types are missing.

nebula-bug-2

@ericbuess ericbuess changed the title Documention for bundling assets like CSS and Images into Nebula Visualizations Documentation for bundling assets like images and CSS into Nebula Supernova Visualizations for Qlik Jul 19, 2022
@ericbuess ericbuess changed the title Documentation for bundling assets like images and CSS into Nebula Supernova Visualizations for Qlik Documentation for bundling assets like images and CSS into Nebula Supernova Visualizations for Qlik Sense Jul 19, 2022
@Caele
Copy link
Collaborator

Caele commented Aug 8, 2022

Hello, thanks for your suggestion. We will look into how to add this to the docs/rollup, but in the mean time I suggest you add a manual step to copy over needed files. We might be able to add support for some files, but not sure how general it is possible to make it, haven't looked into that with rollup. But copying files is pretty simple, in one of our extensions we use shx to just copy over some imanges: https://github.com/qlik-oss/sn-network-chart/blob/master/package.json#L14

@steventhomason
Copy link

steventhomason commented Aug 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants