Open
Description
Similar to gocd/gocd#10852
Summary
Currently we are using Webpack 4. Many plugins/loaders etc have changed and are no longer getting patched/updated, so we probably need to migrate to Webpack 5.
Keeping track of work/research here, for want of a better place.
Things to do
General research
- https://webpack.js.org/migrate/5/
- Research whether the below loaders/plugin combinations are still the best/recommended approaches here
Plugins/Loaders
- Consider switching
file-loader
to https://webpack.js.org/guides/asset-modules/ - replace/remove script-ext-html-webpack-plugin
Current version already supports webpack 5 / can be deferred
- Upgrade
css-loader
from 5.x to 6.x- https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#600-2021-07-14
- Unclear if 5.x works on webpack 5? (probably)
- Upgrade
sass-loader
from 10.x to 13.x - Upgrade
html-webpack-plugin
from 4.x to 5.x - Upgrade
mini-css-extract-plugin
from 1.x to 2.x