-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Webpack v4 and v4-beta support #1295
Comments
I've been caught twice now trying to upgrade Webpack during late beta and getting through the config changes only to realize that it was a waste of time since webpack-dev-server wasn't yet supported. This happened to me on v1 -> v2 and now v3 -> v4. I have a question if the serious developers are not using dev-server in their big projects because I can't see how it would be ideal to do a final beta when the two haven't yet been tested together to see if there are unforeseen limitations. The dev-server isn't as first class as I'd like. I guess that for now I'll just set this code aside, rollback, remove npm links. Its annoying. |
I’m having an issue with code-splitting in v4-beta + WDS (in addition to the fun yargs issue mentioned). Code-splitting is trying to load chunks relatively from the path it’s on, rather than absolutely from the root. E.g., if you’re on Not sure if this is a WDS issue or a webpack v4 issue. Example here: https://github.com/dangodev/webpack-v4-code-splitting-test |
@DangoDev This was just posted a few hours ago, it might be related: https://medium.com/webpack/webpack-4-import-and-commonjs-d619d626b655 |
@damonbauer nice! Just read through that. That’s helpful info, but I don’t think that’s affecting this issue. I opened an issue on the core repo. I’m thinking now it’s a webpack thing, not a webpack-dev-server thing. |
Please test the latest beta, |
@SpaceK33z when passing arguments via CLI (e.g., |
It intentionally requires webpack-cli, yes. |
Found couple of issues with the new defaults in Webpack 4. Versions:
Config: var config = {
mode: "development",
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader",
},
],
},
}; As the
It works if I define it to Another related thing is that the bundle should be served from output: {
publicPath: "/dist",
}, But it's useable otherwise. Thank you! |
@epeli do you also get this error when you are using webpack instead of webpack-dev-server? |
Nope, the weppack command works as expected. |
Now that webpack v4-beta.0 has been released, there are no more expected breaking changes before the v4 full release in a few weeks. It would be great to publish a version of webpack-dev-server that aims to add support for this new version so folks can start to test their stuff.
I found #1243 which could be a good start for this, but I figured I'd open an issue for folks to track if they are interested in this in general.
The text was updated successfully, but these errors were encountered: