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

The packaged js content is directly inserted into the generated template #1815

Open
hcxmj opened this issue Jul 11, 2023 · 0 comments
Open

Comments

@hcxmj
Copy link

hcxmj commented Jul 11, 2023

Hello author:
I want to achieve a requirement that after the packaging is completed, the content of the business code index.xxx.js code is directly read and then inserted into the template html using script to reduce the number of http requests for the first load to achieve loading optimization. I saw html on the Internet html-webpack-inline-source-plugin to be able to achieve similar functions, but the last submission of this plugin was 5 years ago. The latest html-webpack-plugin does not seem to support this plugin function. Is there any other way to achieve similar requirements? Woolen cloth
Looking forward to getting your reply, thank you!

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