WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 456f133

Browse files
committed
Remove mentions of style-loader from README
1 parent 9dc7e09 commit 456f133

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/webpack-extraction-plugin/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ A plugin for Webpack 5 that performs CSS extraction for [`@griffel/react`](../re
77
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
88
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
99

10+
1011
- [Install](#install)
1112
- [When to use it?](#when-to-use-it)
1213
- [How it works?](#how-it-works)
@@ -70,7 +71,7 @@ module.exports = {
7071
},
7172
},
7273
// "css-loader" is required to handle produced CSS assets by Griffel
73-
// you can use "style-loader" or "MiniCssExtractPlugin.loader" to handle CSS insertion
74+
// you can use "MiniCssExtractPlugin.loader" to handle CSS insertion
7475
{
7576
test: /\.css$/,
7677
use: [MiniCssExtractPlugin.loader, 'css-loader'],
@@ -81,7 +82,9 @@ module.exports = {
8182
};
8283
```
8384

84-
- `mini-css-extract-plugin` is not mandatory and configured there for example, you can use `style-loader` or other tooling to inject CSS on a page
85+
- `mini-css-extract-plugin` is not mandatory and configured there for example, you can use other tooling to inject CSS on a page
86+
87+
> ⚠️ `style-loader` does not produce necessary assets for the Griffel plugin to order CSS rules correctly. Using it to handle CSS insertion would result in partially broken styling in your app.
8588
8689
For better performance (to process less files) consider to use `include` for `GriffelCSSExtractionPlugin.loader`:
8790

0 commit comments

Comments
 (0)