-
-
Notifications
You must be signed in to change notification settings - Fork 621
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
outputPath is not respected with 4.2.0 #2242
Comments
How you run server? |
|
Can you try |
I get |
Yep, bug, need to fix, as workaround you can set
and use |
Maybe it's |
Anyway I think it is fixed in master, I will add tests in near future |
But wow, I was not expecting this 🚀 |
I checked out the latest release (4.3.0). Our setup works again without any changes. Thank you. Despite these tiring times I wish you all the best for next year 🎉 |
Let's keep open, I want to add tests for this case to avoid regressions |
Describe the bug
We can server our repostiory against our production build with this config. I did cut some (hopefully useless) information, to make it easier to get.
Using HtmlWebpackPlugin with some pretty boring index.ejs file
What is the current behavior?
Before 4.2.0 everything work as expected:
Scripts were loaded from the
/app
, index was served from /Now the html contains
This returns 404, while accessing just
/runtime.4f07461f24ae6827cfbb.js
works.So I assume either index is served from the wrong folder, or assets are not put in the correct folder.
Using
publicPath: '/'
does work, but would also effect production builds, which is not desired.To Reproduce
~~
Expected behavior
It should work as before.
Screenshots
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
Webpack Version is 4.44.2
The text was updated successfully, but these errors were encountered: