A collection of codemods to automatically upgrade webpack configurations and APIs to newer versions.
Run a codemod on your project with the Codemod CLI:
npx codemod run @webpack/<codemod-name>| Codemod | Description |
|---|---|
css-plugins-to-native-css |
Migrate mini-css-extract-plugin, style-loader/css-loader rules, and supported css-minimizer-webpack-plugin options to webpack's native CSS support and minification. |
html-plugins-to-native-html |
Migrate html-webpack-plugin and html-loader to native HTML support and minification. |
See CONTRIBUTING.md for how to add a new codemod or improve an existing one.