Skip to content

Commit 4659684

Browse files
authored
docs: update github syntax of note & warning (#1607)
1 parent aa456b5 commit 4659684

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The `css-loader` interprets `@import` and `url()` like `import/require()` and wi
2020

2121
## Getting Started
2222

23-
> **Warning**
23+
> [!WARNING]
2424
>
2525
> To use the latest version of css-loader, webpack@5 is required
2626
@@ -423,7 +423,7 @@ The loader replaces local selectors with unique identifiers. The chosen unique i
423423
}
424424
```
425425

426-
> **Note**
426+
> [!NOTE]
427427
>
428428
> Identifiers are exported
429429
@@ -478,7 +478,7 @@ exports.locals = {
478478

479479
To import a local classname from another module.
480480

481-
> **Note**
481+
> [!NOTE]
482482
>
483483
> We strongly recommend that you specify the extension when importing a file, since it is possible to import a file with any extension and it is not known in advance which file to use.
484484
@@ -1154,7 +1154,7 @@ Default: Depends on the value of the `esModule` option. If the value of the `esM
11541154

11551155
Enables/disables ES modules named export for locals.
11561156

1157-
> **Warning**
1157+
> [!WARNING]
11581158
>
11591159
> Because it is not allowed to use the `default` class in CSS when the `namedExport` is `true` (since ECMA modules have a reserved keyword `default` for default export), it will be automatically renamed to the `_default` class.
11601160
@@ -1261,7 +1261,7 @@ type exportLocalsConvention =
12611261

12621262
Default: Depends on the value of the `modules.namedExport` option, if `true` - `as-is`, otherwise `camel-case-only`.
12631263

1264-
> **Warning**
1264+
> [!WARNING]
12651265
>
12661266
> Names of locals are converted to camelcase when the named export is `false`, i.e. the `exportLocalsConvention` option has
12671267
> `camelCaseOnly` value by default. You can set this back to any other valid option but selectors
@@ -1823,11 +1823,11 @@ import "./styles.css";
18231823

18241824
#### `'string'`
18251825

1826-
> **Warning**
1826+
> [!WARNING]
18271827
>
18281828
> You should not use [`style-loader`](https://github.com/webpack-contrib/style-loader) or [`mini-css-extract-plugin`](https://github.com/webpack-contrib/mini-css-extract-plugin) with this value.
18291829
1830-
> **Warning**
1830+
> [!WARNING]
18311831
>
18321832
> The `esModule` option should be enabled if you want to use it with [`CSS modules`](https://github.com/webpack-contrib/css-loader#modules), by default for locals will be used [named export](https://github.com/webpack-contrib/css-loader#namedexport).
18331833
@@ -1858,19 +1858,19 @@ console.log(sheet);
18581858

18591859
#### `'css-style-sheet'`
18601860

1861-
> **Warning**
1861+
> [!WARNING]
18621862
>
18631863
> `@import` rules not yet allowed, more [information](https://web.dev/css-module-scripts/#@import-rules-not-yet-allowed)
18641864
1865-
> **Warning**
1865+
> [!WARNING]
18661866
>
18671867
> You don't need [`style-loader`](https://github.com/webpack-contrib/style-loader) anymore, please remove it.
18681868
1869-
> **Warning**
1869+
> [!WARNING]
18701870
>
18711871
> The `esModule` option should be enabled if you want to use it with [`CSS modules`](https://github.com/webpack-contrib/css-loader#modules), by default for locals will be used [named export](https://github.com/webpack-contrib/css-loader#namedexport).
18721872
1873-
> **Warning**
1873+
> [!WARNING]
18741874
>
18751875
> Source maps are not currently supported in `Chrome` due [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1174094&q=CSSStyleSheet%20source%20maps&can=2)
18761876
@@ -1981,7 +1981,7 @@ For `production` builds it's recommended to extract the CSS from your bundle bei
19811981
This can be achieved by using the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin), because it creates separate css files.
19821982
For `development` mode (including `webpack-dev-server`) you can use [style-loader](https://github.com/webpack-contrib/style-loader), because it injects CSS into the DOM using multiple `<style></style>` and works faster.
19831983

1984-
> **Note**
1984+
> [!NOTE]
19851985
>
19861986
> Do not use `style-loader` and `mini-css-extract-plugin` together.
19871987

0 commit comments

Comments
 (0)