symfony / webpack-encore

A simple but powerful API for processing & compiling assets built around Webpack
https://symfony.com/doc/current/frontend.html
MIT License
2.23k stars 198 forks source link

Migrate to webpack-dev-server 5 #1290

Closed stof closed 2 months ago

stof commented 3 months ago

webpack-dev-server has a new major version with a bunch of breaking changes: https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md

As we allow projects to customize their settings in webpack-encore, upgrading to the new major version requires a BC break. For simplicity, I suggest that webpack-encore 5.x uses only the new major version of webpack-dev-server instead of trying to support multiple versions (for dependencies rather than peer dependencies, all of yarn, npm and pnpm will install the latest version in the range anyway. Only yarn --flat or equivalent non-default resolution modes would benefit from a support of older versions, and I don't think there is a valid set of dependencies for webpack-encore for the flat resolution anyway)