Upgrading mini-css-extract-plugin 1 to 2
Breaking1.6.2 → 2.10.2Breaking2Platform1New12Changed4Fixed37
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- You no longer set namedExport here; set it in css-loader instead.
- If your public path needs a trailing slash, you must now add it yourself.
- You need Node.js 12.13.0 or newer to use this version.
Must act 3 items need code or config changes
Node.js requirement changed in 2.0.0: >= 10.13.0 → >= 12.13.0.
Adds tapable ^2.2.1.
Drops loader-utils, webpack-sources.
Installs 10 packages in all (was 16).
What you must change
Breaking2
Removes the modules.namedExport option, since the css-loader option is now respected.
modules.namedExportStops automatically adding a trailing slash to the publicPath option.
publicPathPlatform1
Raises the minimum supported Node.js version to 12.13.0.