-
Notifications
You must be signed in to change notification settings - Fork 57
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
Comments
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 |
Thank you for the suggestion. The main reason for this request is to be able to use an asset folder with many images, html or css files, etc…. Right now they show up in the QMC, but are stripped when viewing the sources in the developer tools. Also, when trying to import npm libraries the extension breaks. We found a long (not pretty) workaround for this but the error tells us only .js files can be imported into the extension.
…________________________________
From: Tobias Åström ***@***.***>
Sent: Monday, August 8, 2022 3:20 AM
To: qlik-oss/nebula.js ***@***.***>
Cc: Steven Thomason ***@***.***>; Manual ***@***.***>
Subject: Re: [qlik-oss/nebula.js] Documentation for bundling assets like images and CSS into Nebula Supernova Visualizations for Qlik Sense (Issue #887)
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
—
Reply to this email directly, view it on GitHub<#887 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATLH74MJKSL2LGER7JLIM7DVYCYMVANCNFSM54BPX47A>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
CONFIDENTIALITY NOTICE: This e-mail and any attached files may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you received this e-mail by accident, please notify the sender immediately and destroy this e-mail and all copies of it. We may scan and or monitor emails sent to and from our servers to ensure regulatory compliance to protect our clients and business.
|
🚀 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 runningnebula 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 tellnebula sense
to include assets like images when bundling the project as a Qlik extension would alleviate the confusion.Additional context
Trying to import the files shows an error that may indicate plugins needed for Rollup to include such file types are missing.
The text was updated successfully, but these errors were encountered: