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

Is it possible to add an entry that outputs a js file instead of html? #24

Open
gerrytan opened this issue Feb 3, 2021 · 2 comments
Open

Comments

@gerrytan
Copy link

gerrytan commented Feb 3, 2021

In my use case, I want to add a second entry which is just a js file. It is a chrome extension app where I use the main index.html as the popup, and the second entry is going to be a background.js which injected into the page. Is it possible to achieve this using your library?

@JSteunou
Copy link

JSteunou commented Feb 5, 2021

same need here, I tried to set template to null, it kind of work because it builds, but the generated js is not usable as a standalone script, it depends on the webpack bootstrap part which is in the html file

@tibotiber
Copy link

Hi, you could try to set template: 'public/index.html' for all your entries? If not I have just updated an old lib and published a CRA3 compatible version at rewire-js-entry that does just that. Hope this helps.

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