Skip to content

docs: modernize loader example using css-loader#8088

Merged
alexander-akait merged 2 commits intowebpack:mainfrom
ryzrr:fix/asset-module-ghost
Mar 23, 2026
Merged

docs: modernize loader example using css-loader#8088
alexander-akait merged 2 commits intowebpack:mainfrom
ryzrr:fix/asset-module-ghost

Conversation

@ryzrr
Copy link
Copy Markdown
Contributor

@ryzrr ryzrr commented Mar 21, 2026

Summary
Replaced the deprecated raw-loader example with the actively supported css-loader in the Concepts documentation.

What kind of change does this PR introduce?
Updated the "Loaders" section in src/content/concepts/index.mdx to reflect modern Webpack conventions. The example previously contained dead code (raw-loader) which has natively been replaced by Webpack 5 Asset Modules. I swapped it out for css-loader to perfectly maintain the purpose of the use property example without breaking the context of the guide.

Did you add tests for your changes?
No

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?
N/A

Use of AI
N/A

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Mar 23, 2026 2:50pm

Request Review

Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

css-loader will be deprecated in future too (in favor of experiments.css), so let's make it for other loader

@ryzrr
Copy link
Copy Markdown
Contributor Author

ryzrr commented Mar 23, 2026

Makes sense regarding experiments.css! So should I swap this to a ts-loader or babel-loader instead?

@alexander-akait
Copy link
Copy Markdown
Member

I think babel-loader is the good example here

@ryzrr
Copy link
Copy Markdown
Contributor Author

ryzrr commented Mar 23, 2026

Okay , working on it then.

@alexander-akait alexander-akait merged commit f0dca9a into webpack:main Mar 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants