-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WP4, Multiple Entry Points script injected in all files. #880
Comments
I finally made it work like this. Now all files injected in correct place.
|
In order to make splitting initial chunks and generating runtime chunk possible, I wrote this plugin: https://github.com/fenivana/html-webpack-include-sibling-chunks-plugin |
I'm new to webpack , and I'm also trying to setup multiple entry-point , and webpack4 is the first version of webpack I've used.. so I thought that this plugin was not working for multiple-entry point, but now if you say so definitely both solutions are impossible to use... (@fenivana ) your plugin as patch to html-webpack-plugin works perfectly in my usecase :) thank you, anyway I still want to suggest to apply somehow the functionality of his plugin in html-webpack-plugin to avoid the necessity of having a plugin to patch another one.. :) |
This issue involves a lot of refactoring as we need to switch to the webpack 4 api. |
Could you please try if this works for you with 4.x alpha? Npm pre release:
|
@jantimon It is ok. Thanks. |
@jantimon How is this meant to be used? I'm running into the same problem, and after installing the @next version of html-webpack-plugin, I'm trying to configure webpack.config.js to work this way but I'm having trouble. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am trying to separate entry points. This was ok with webpack 3.

I have 2 entry and expecting 2 different output.
Basically expecting login script injected to login page, index script injected to index page. No success yet.
This is the login html file. Network tab.

This is the index html file. Network tab.

I tried both repos. Same result.
webpack-contrib/html-webpack-plugin
jantimon/html-webpack-plugin
And webpack config for chunks. Tried thousand different setting here.

This is the html-webpack-plugin setup. Tried thousand different setting here, too.

The text was updated successfully, but these errors were encountered: