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

docs: deprecate css-loader in favor of webpack's built-in CSS support - #1683

Merged
alexander-akait merged 2 commits into
mainfrom
claude/css-html-loader-deprecation-ec783u
Aug 27, 2026
Merged

docs: deprecate css-loader in favor of webpack's built-in CSS support#1683
alexander-akait merged 2 commits into
mainfrom
claude/css-html-loader-deprecation-ec783u

Conversation

@alexander-akait

Copy link
Copy Markdown
Member

Summary

webpack parses @import, url() and CSS Modules itself, and experiments.css defaults to "auto" since 5.109.0, so css-loader is no longer needed. Adds a deprecation notice at the top of the README linking the Native CSS guide, its migration guide and the codemod, and noting that "auto" leaves a .css rule that already has a loader alone so existing setups keep working.

What kind of change does this PR introduce?

docs

Did you add tests for your changes?

n/a — README and .cspell.json only, no code change.

Does this PR introduce a breaking change?

No.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Nothing further — https://webpack.js.org/loaders/css-loader/ is generated from this README, so the notice appears there on the next docs build. The /loaders index already marks the loader deprecated.

Use of AI

Yes — Claude Code drafted the notice and checked every linked anchor against the guides in webpack.js.org and the experiments.css version against webpack's schema and changelog. Reviewed and edited by me before pushing.


Generated by Claude Code

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.
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.25%. Comparing base (488cdb1) to head (511bbee).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1683   +/-   ##
=======================================
  Coverage   96.25%   96.25%           
=======================================
  Files          10       10           
  Lines        1201     1201           
  Branches      463      460    -3     
=======================================
  Hits         1156     1156           
  Misses         40       40           
  Partials        5        5           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Drop the codemod suggestion and the per-option mapping from the README
notice; the migration guide is the place that tracks both.
@alexander-akait
alexander-akait merged commit 405bdde into main Aug 27, 2026
18 of 19 checks passed
@alexander-akait
alexander-akait deleted the claude/css-html-loader-deprecation-ec783u branch August 27, 2026 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant