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

Adds additional characters with multiple entry points #14

Closed
dfbaskin opened this issue Aug 1, 2019 · 0 comments
Closed

Adds additional characters with multiple entry points #14

dfbaskin opened this issue Aug 1, 2019 · 0 comments

Comments

@dfbaskin
Copy link

dfbaskin commented Aug 1, 2019

When multiple entry points are found (like when using web workers), then extra comma (',') characters get written to the html file. The injection code needs to expand the bundles array, something like this:

// Inject the script tags before the body close tag
const injected = [
    tmpl.slice(0, bodyCloseTag),
    ...bundles.map(b => `<script src="${b}"></script>\n`),
    tmpl.slice(bodyCloseTag, tmpl.length),
].join("");
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

1 participant