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
Unexpected result of entry points merge #76
Comments
Hey @pawelpacana. Thanks for reporting! +1 for the excellent bug report :) Looks like an issue with Will have a look at it tomorrow! |
I think this is going to be fixed with #59 We are still on a old webpack-merge version and the merging should be fine afterward. |
I thought so initially. Providing relevant config partials to I've spent some time with tracking source of this issue today and:
|
* Shift focus from unit to integration tests for `devServer` * Add regression test for #76 * Test that `devServer` is composable
Will keep this issue open until the updated packages have been published. |
Please try the It contains the upgrade to |
Thanks! Seems like the problem is solved now. |
I have multiple entry points in my webpack config:
I have also defined
development
env withdevServer
block:This
devServer
block returns'webpack/hot/only-dev-server'
for each entry point key, lettingwebpack-merge
merge it later with original entry points:https://github.com/andywer/webpack-blocks/blob/master/packages/webpack-common/src/devServer.js#L43-L59
In the end one would expect to get following entry points in development env:
What I'm observing however is:
First entry point value is replicated over latter entry keys.
I've managed to isolate minimal configuration under which this behaviour can be reproduced. Have a look at: https://github.com/pawelpacana/webpack-blocks-multiple-entries-dev-server-merge
For clarity, precise software versions under which I can observe this behaviour:
As a workaround I've used following snippet to get predictable merge behaviour:
The text was updated successfully, but these errors were encountered: