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

Rollup deploy dist #19

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

elliotBraem
Copy link
Contributor

Configures rollup for base64 encoded dist in bos widget iframe (from this comment)

It has been deployed to efiz.near/widget/jsinrust

{
name: "inline-js",
closeBundle: () => {
const js = readFileSync("./app.component.js").toString();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the bundled js file you need to load, and not app.component.js.

the bundle file named app.[hash].js contains all the javascript and html packed into one file, while app.component.js will try loading the other files which will not be available in the production deployment context.

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

Successfully merging this pull request may close these issues.

2 participants