https://github.com/webpack/codemods
Official Webpack Codemods
https://github.com/webpack/codemods
codemods webpack
Last synced: 4 days ago
JSON representation
Official Webpack Codemods
- Host: GitHub
- URL: https://github.com/webpack/codemods
- Owner: webpack
- License: mit
- Created: 2026-07-29T17:58:43.000Z (10 days ago)
- Default Branch: main
- Last Pushed: 2026-08-02T01:05:33.000Z (6 days ago)
- Last Synced: 2026-08-02T01:09:43.516Z (6 days ago)
- Topics: codemods, webpack
- Language: JavaScript
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# webpack codemods
A collection of codemods to automatically upgrade webpack configurations and APIs to newer versions.
## Usage
Run a codemod on your project with the [Codemod CLI](https://docs.codemod.com/cli):
```sh
npx codemod run @webpack/
```
## Codemods
| Codemod | Description |
| ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| [`css-plugins-to-native-css`](codemods/css-plugins-to-native-css) | Migrate `mini-css-extract-plugin` and `style-loader`/`css-loader` rules to webpack's native CSS support (`experiments.css`). |
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for how to add a new codemod or improve an existing one.
## License
[MIT](LICENSE)