Update webpack to 4.47.0 / webpack-cli to 4.10.0 / webpack-dev-server 4.15.1 #26216
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates webpack and webpack-cli to the latest 4.x version which is a stopgap towards #26229.
What works
yarn build
--bail
is now a config option instead of a CLI flagyarn start
-w
has been removed but watching appears to work so I assume this is the new defaultcontentBase
is nowstatic.directory
stats
is nowdevMiddleware.stats
hotOnly: true
is nowhot: "only"
--disable-host-check
is nowallowedHosts: "all"
Things I'm unsure about
hotOnly: true
with--hot
. I thinkhotOnly
is what we want because it auto-refreshes after build failures. Therefore, I've removed--hot
--output-...
options seem to have been removed. In turn--output-path webapp
appears to be required. webpack-cli 4.3.0 has broken auto bundling bhauman/figwheel-main#278 (comment) indicates that this might be a result of combining webpack 4 with webpack-cli 4.This change is marked as an internal change (Task), so will not be included in the changelog.