-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
Serve command not passing webpack devServer
config to webpack-dev-server
#1469
Comments
Taking a look, thanks for the report! |
Found the issue, will fix in a bit. 👍 |
Issue - devServer config was never passed fully to the server. |
@evilebottnawi even after passing
Dev server version: webpack-dev-server@3.10.3 |
@anshumanv yep, because it is logs from server, not from client |
Yes, But it should pass the devServer object from the config right to DevServer right? |
@anshumanv we should get |
@evilebottnawi yep, fix is here - #1470 |
Fix is now here #1649 |
This is a pretty major blocker for my workflow, hope this gets solved soon! |
#1649 is now merged. I can confirm the issue is fixed with |
Will this be released in a new alpha/beta release soon? Would be wonderful to have it working :) |
Ya, kinda been considering doing that myself! hehe :) |
Looks like this was fixed in webpack-cli v4.0.0-beta.9 I can't test it now, but if someone can confirm, we might be able to close this issue. If no one is available, I'll try to find some time to test it. |
Tried with latest, sadly, in my case, all webpack (and cli commands) have stopped working:
Following packages installed:
Haven't had time to look in to it, (just saw that there where a new version out a few min ago and only have time to test quick before fixing food! hehe)... Edit: Running on windows 10 pro (latest stable) and have only tested with node built for windows, will try on linux later too and see. |
You don't need |
Even without I still get the same errors :/ |
Just note - replace optimize-css-assets-webpack-plugin on https://github.com/webpack-contrib/css-minimizer-webpack-plugin (there are bugs in architecture) |
Okay, after deleting node_modules and package files a couple of times and reinstalling and all that fun stuff I now get the following error:
It does seem to be kind'a true, the If you look at the Changing to use Is the package installed with |
Yep this is known, #1814 Releasing of sub packages should solve this, I think @evilebottnawi / @evenstensberg is already on this |
Aah, i see! That's good to hear, just built the latest serve version to test (from the next branch). Other than having to install So I eagerly await the release of next serve version :) Edit: |
I can confirm that this issue is fixed with |
Let's close, feel free to open a new issue if you faced with the issue again with reproducible test repo |
Describe the bug
Serve command not passing webpack
devServer
config to webpack-dev-serverwebpack.dev.js
command used
webpack serve --config webpack.dev.js
What is the current behavior?
The webpack server runs but doesn't pick up all the options from the
devServer
config. You can see this bywebpack output
being undefined in the CLI output, but also the proxy was also not working.To Reproduce
Relevant entries from
package.json
Steps to reproduce the behavior:
devServer
config in your webpack config filewebpack serve --config webpack.dev.js
Expected behavior
Previously the dev server would pick up
devServer
config object from your webpack config fileAdditional context
If I change line 28 from
startDevServer.ts
it works as expected but obviously this ignores the cli overrides.CLI output
The text was updated successfully, but these errors were encountered: