Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

Commit 405bdde

Browse files
docs: deprecate css-loader in favor of webpack's built-in CSS support (#1683)
* docs: deprecate css-loader in favor of webpack's built-in CSS support Webpack parses, extracts and minifies CSS itself since experiments.css defaults to "auto" in 5.109.0. Point the README at the Native CSS guide and its migration guide on webpack.js.org. * docs: trim the deprecation notice to the migration guide link Drop the codemod suggestion and the per-option mapping from the README notice; the migration guide is the place that tracks both.
1 parent bd20834 commit 405bdde

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616

1717
# css-loader
1818

19+
> [!WARNING]
20+
>
21+
> **`css-loader` is deprecated** — webpack parses CSS itself and no longer needs it.
22+
>
23+
> Read the [Native CSS guide](https://webpack.js.org/guides/native-css/) and follow its [migration guide](https://webpack.js.org/guides/native-css/#migration-guide).
24+
>
25+
> Existing setups keep working: built-in CSS support stays off for any `.css` rule that already has a loader, so you can migrate one rule at a time.
26+
1927
The `css-loader` interprets `@import` and `url()` like `import/require()` and resolves them.
2028

2129
## Getting Started

0 commit comments

Comments
 (0)