html-webpack-plugin icon indicating copy to clipboard operation
html-webpack-plugin copied to clipboard

The packaged js content is directly inserted into the generated template

Open hcxmj opened this issue 2 years ago • 0 comments

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!

hcxmj avatar Jul 11 '23 09:07 hcxmj