-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
I tried mergeWithRules in my webpack5 environment, and index.html stopped being generated by HtmlWebPackPlugin #157
Comments
It doesn't generate |
Hi @bebraw and @AuthorProxy, I'm experiencing a very similar issue... My use case is pretty simple — I'm replacing old While Lines 86 to 98 in 250503f
Notice the last statement here: When function encounters a rule (or lack thereof) that isn't a plain object, it simply returns an empty array. I changed that to @bebraw please have a look at: https://github.com/kristoforsalmin/webpack-merge/commit/078830345cf34fd99059f10ff0b4386946bc0e6b. If that looks OK to you, then I can submit a PR. I also added a new test that covers this use case. Might also be related to #151. |
@kristoforsalmin Yeah, that looks correct. Please send me a PR based on your work and I'll merge. It looks like that's the right way to solve this one. You might have to apply Prettier on the code to format it. |
@bebraw cool, I've just sent you a new PR. I tried to follow your coding conventions as close as I can 🙂 I tried to run Prettier, but it's not in the dependencies (you might want to include it), so I installed it globally and then run it, but it started fixing almost every file... So can you please run it yourself and fix code style, if needed. Would that be OK? |
This should be fixed in @kristoforsalmin Thanks for the PR! |
@kristoforsalmin I also fixed the Prettier issue. Now it's formatted based on Prettier 2. I changed the default branch of the project to |
For simple use-case:
Here how i started it:
"watch": "nodemon --exec \"cross-env NODE_OPTIONS=\"--no-deprecation\" webpack serve --progress --hot\""
this one prevent from generating index.html, but this one is working:
The text was updated successfully, but these errors were encountered: